/* iVault Plus website - one stylesheet for every page.
   Palette: one dominant brand blue (from the logo) + one marigold accent (the "Approved" stamp).
   Type: Bricolage Grotesque (headings) + Instrument Sans (text). Component list: see docs/components.md. */
:root{
  --ink:#0f1b2d; --ink-2:#3a4757; --muted:#667386; --line:#e3e8ef; --line-2:#d3dbe6;
  --bg:#ffffff; --bg-soft:#f4f7fb; --bg-deep:#0d1a2e; --bg-deep-2:#122440; --line-deep:#2b4163; --text-deep:#b9c6d8;
  --brand:#2f86eb; --brand-deep:#1554b3; --brand-tint:#e8f2fe;
  --accent:#f2a516; --accent-deep:#b45309; --accent-tint:#fff4dc;
  --ok:#15803d; --ok-tint:#dcfce7;
  --r:14px; --shadow:0 1px 2px rgba(15,27,45,.06),0 12px 32px -8px rgba(15,27,45,.18);
  --head:"Bricolage Grotesque",system-ui,sans-serif; --body:"Instrument Sans",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--body);color:var(--ink);background:var(--bg);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 14px;z-index:100}
.skip:focus{left:8px}
h1,h2,h3,h4{font-family:var(--head);line-height:1.08;letter-spacing:-.02em;font-weight:700;text-wrap:balance}
h1{font-size:clamp(38px,5.6vw,68px);font-weight:800}
h2{font-size:clamp(30px,3.8vw,46px)}
h3{font-size:21px;letter-spacing:-.01em;line-height:1.2}
h1 em,h2 em{font-style:normal;color:var(--brand)}
p{text-wrap:pretty}
.lede{font-size:clamp(18px,1.6vw,21px);color:var(--ink-2);max-width:44ch}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.wrap-narrow{max-width:760px;margin:0 auto;padding:0 24px}
.center{text-align:center}
.muted{color:var(--muted)}
.mt{margin-top:24px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;font:600 16px var(--body);padding:13px 22px;border-radius:999px;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:transform .15s,background .15s,border-color .15s;line-height:1.2}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-deep)}
.btn-ghost{background:#fff;border-color:var(--line-2);color:var(--ink)}
.btn-ghost:hover{border-color:var(--brand)}
.on-dark .btn-ghost,.btn-ghost.on-dark{background:transparent;color:#fff;border-color:#3b4f6e}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.center .btn-row,.btn-row.center{justify-content:center}
.link{color:var(--brand-deep);font-weight:600;text-decoration:none}
.link:hover{text-decoration:underline}

/* Header + menus */
.site-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.site-head .wrap{display:flex;align-items:center;gap:24px;height:70px}
.brand img{height:36px;width:auto}
.menu{display:flex;align-items:center;gap:4px}
.m-item{position:relative}
.m-top{font:500 15px var(--body);color:var(--ink-2);background:none;border:0;padding:10px 12px;border-radius:8px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
button.m-top:after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.m-top:hover,.m-top[aria-current]{color:var(--ink);background:var(--bg-soft)}
.m-drop{position:absolute;top:calc(100% + 6px);left:0;min-width:280px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;display:none;z-index:60}
.m-drop-wide{min-width:540px;display:none;grid-template-columns:1fr 1fr}
.m-item.open .m-drop{display:block}
.m-item.open .m-drop-wide{display:grid}
.m-drop a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none}
.m-drop a:hover{background:var(--bg-soft)}
.m-drop b{display:block;font-weight:600;font-size:15px}
.m-drop span{display:block;font-size:13.5px;color:var(--muted)}
.head-cta{margin-left:auto;padding:10px 18px;font-size:15px}
.burger{display:none;margin-left:8px;width:42px;height:42px;border:1px solid var(--line-2);border-radius:10px;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:4px;cursor:pointer}
.burger span{width:18px;height:2px;background:var(--ink);border-radius:2px;transition:transform .15s,opacity .15s}
.burger.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger.is-open span:nth-child(2){opacity:0}
.burger.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (max-width:980px){
  .burger{display:flex}
  .menu{display:none;position:fixed;inset:70px 0 0 0;background:#fff;flex-direction:column;align-items:stretch;padding:12px 20px 40px;overflow:auto;gap:2px}
  .menu.open{display:flex}
  .m-top{width:100%;justify-content:space-between;font-size:17px;padding:14px 8px}
  .m-drop,.m-drop-wide{position:static;box-shadow:none;border:0;min-width:0;padding:0 0 8px 8px}
  .m-item.open .m-drop-wide{display:block}
  .head-cta{margin-left:auto}
}
@media (max-width:420px){.head-cta{padding:9px 14px;font-size:14px}.brand img{height:30px}}

/* WhatsApp */
.wa{position:fixed;right:20px;bottom:20px;z-index:40;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:var(--shadow);transition:transform .15s}
.wa:hover{transform:scale(1.06)}
.wa{transition:transform .2s,opacity .2s}
@media (max-width:768px){
  .wa{width:48px;height:48px;right:14px;bottom:14px}
  .wa svg{width:24px;height:24px}
  .wa.wa-away{transform:translateY(90px);opacity:0;pointer-events:none}
}
.wa svg{width:28px;height:28px;fill:#fff}
/* Back to top: centred above the WhatsApp button, shown once the reader is well down the page */
.to-top{position:fixed;right:26px;bottom:88px;z-index:40;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line-2);color:var(--ink);display:grid;place-items:center;box-shadow:var(--shadow);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s,transform .2s,visibility .2s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{border-color:var(--brand);color:var(--brand-deep)}
.to-top svg{width:20px;height:20px}
@media (max-width:768px){.to-top{right:16px;bottom:72px}}

/* Sections */
.sec{padding:96px 0}
.sec-sm{padding:64px 0}
.sec-soft{background:var(--bg-soft)}
.sec-dark{background:var(--bg-deep);color:#fff}
.sec-dark .lede,.sec-dark p{color:var(--text-deep)}
.sec-head{max-width:720px;margin-bottom:44px}
.sec-head.center{margin-inline:auto}
.sec-head p{color:var(--ink-2);margin-top:14px;font-size:18px}
.kicker{display:inline-block;font:700 14px var(--body);color:var(--brand-deep);margin-bottom:12px}
.sec-dark .kicker{color:#9ccaff}

/* Hero: split (home) */
.hero-split{padding:64px 0 56px;background:linear-gradient(180deg,var(--brand-tint),#fff 85%)}
.hero-split .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
.hero-split h1{font-size:clamp(38px,4.8vw,62px)}
.hero-split .lede{margin:20px 0 28px}
.hero-note{margin-top:18px;font-size:14px;color:var(--muted)}
/* Hero: inner pages */
.page-hero{padding:72px 0 56px;background:radial-gradient(1100px 420px at 50% -10%,var(--brand-tint),transparent 70%)}
.page-hero .lede{margin-top:18px}
.page-hero.center .lede{margin-inline:auto}
.page-hero .btn-row{margin-top:28px}
.page-hero.split .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:48px;align-items:center}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:14px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--brand-deep)}
@media (max-width:900px){.hero-split .wrap,.page-hero.split .wrap{grid-template-columns:1fr}}

/* Proof strip */
.strip{border-block:1px solid var(--line);background:#fff}
.strip .wrap{display:flex;gap:28px;align-items:center;justify-content:space-between;padding-block:22px;flex-wrap:wrap;font-weight:600;font-size:15px;color:var(--ink-2)}
.strip span{display:flex;align-items:center;gap:10px}
.strip .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}

/* Scroll story (home) */
.story{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px}
.steps{padding:10vh 0 26vh}
.step{min-height:60vh;display:flex;flex-direction:column;justify-content:center;opacity:.3;transition:opacity .35s}
.step.on{opacity:1}
.step .time{font:700 15px var(--head);color:var(--brand-deep);margin-bottom:10px;display:flex;align-items:center;gap:10px}
.step .time:before{content:"";width:28px;height:2px;background:var(--brand)}
.step h3{font-size:clamp(26px,2.6vw,34px);margin-bottom:12px}
.step p{color:var(--ink-2);font-size:18px;max-width:40ch}
.sticky{position:sticky;top:110px;height:max-content;padding-top:10vh}
@media (max-width:900px){.story{grid-template-columns:1fr;gap:0}.sticky{top:70px;padding:12px 0;order:-1;z-index:5;background:#fff}.steps{padding:0}.step{min-height:72vh}}

/* Pillars (three big rows) */
.pillar{display:grid;grid-template-columns:140px 1fr 1fr auto;gap:32px;padding:36px 0;border-top:1px solid var(--line-2);align-items:start}
.pillar .k{font:800 15px var(--head);color:var(--brand)}
.pillar h3{font-size:clamp(26px,2.8vw,38px)}
.pillar p{color:var(--ink-2);font-size:18px}
@media (max-width:900px){.pillar{grid-template-columns:1fr;gap:10px}}

/* Bento */
.bento{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:minmax(220px,auto);gap:16px}
.tile{background:var(--bg-soft);border:1px solid var(--line);border-radius:20px;padding:26px;display:flex;flex-direction:column;gap:12px;overflow:hidden;text-decoration:none}
a.tile:hover{border-color:var(--brand)}
.tile p{color:var(--ink-2);font-size:15.5px}
.tile.dark{background:var(--bg-deep);color:#e8eef7;border-color:var(--bg-deep)}
.tile.dark p{color:var(--text-deep)}
.tile .more{margin-top:auto;font-weight:600;font-size:14.5px;color:var(--brand-deep)}
.tile.dark .more{color:#9ccaff}
.s2{grid-column:span 2}.s3{grid-column:span 3}.s4{grid-column:span 4}.s6{grid-column:span 6}
@media (max-width:900px){.bento{grid-template-columns:1fr}.bento>*{grid-column:auto!important}}

/* Feature rows (text beside a screen) */
.frow{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;padding:56px 0}
.frow.rev>:first-child{order:2}
.frow h2{font-size:clamp(28px,3.2vw,40px);margin-bottom:14px}
.frow h3{font-size:clamp(24px,2.4vw,30px);margin-bottom:12px}
.frow p{color:var(--ink-2);font-size:17.5px}
.frow+.frow{border-top:1px solid var(--line)}
@media (max-width:900px){.frow{grid-template-columns:1fr;gap:28px}.frow.rev>:first-child{order:0}}

/* Ticks list */
.ticks{list-style:none;margin-top:20px;display:grid;gap:10px}
.ticks li{padding-left:28px;position:relative;font-size:16.5px}
.ticks li:before{content:"";position:absolute;left:1px;top:7px;width:13px;height:7px;border-left:2.5px solid var(--ok);border-bottom:2.5px solid var(--ok);transform:rotate(-45deg)}
.sec-dark .ticks li:before{border-color:#6fe39a}

/* A person in an example */
.person{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.person .av-lg{width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font:700 15px var(--body);flex:none}
.person b{display:block;font-size:15.5px}
.person span{font-size:14px;color:var(--muted)}
.quote{font-family:var(--head);font-size:clamp(22px,2.2vw,28px);font-weight:600;line-height:1.3;letter-spacing:-.01em}

/* Before / after */
.ba{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.ba div{border-radius:16px;padding:20px;border:1px solid var(--line)}
.ba .before{background:#fff}
.ba .after{background:var(--ok-tint);border-color:#bde9cb}
.ba small{display:block;font-weight:700;font-size:13px;color:var(--muted);margin-bottom:6px}
.ba .after small{color:var(--ok)}
.ba strong{font:700 26px var(--head);display:block;line-height:1.1}
.ba span{font-size:14.5px;color:var(--ink-2)}

/* Team cards */
.teams{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.team{text-decoration:none;display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:18px;padding:22px;background:#fff;transition:border-color .2s,transform .2s}
.team:hover{border-color:var(--brand);transform:translateY(-2px)}
.team .t{font-size:13px;font-weight:700;color:var(--brand-deep)}
.team h3{font-size:19px}
.team p{font-size:15px;color:var(--ink-2)}
@media (max-width:900px){.teams{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.teams{grid-template-columns:1fr}}

/* Cards grid (generic) */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cards.two{grid-template-columns:1fr 1fr}
.cards.four{grid-template-columns:repeat(4,1fr)}
.card{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff}
.card h3{margin-bottom:8px}
.card p{color:var(--ink-2);font-size:15.5px}
.sec-dark .card{background:var(--bg-deep-2);border-color:var(--line-deep)}
.sec-dark .card p{color:var(--text-deep)}
@media (max-width:900px){.cards,.cards.four{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.cards,.cards.two,.cards.four{grid-template-columns:1fr}}

/* Dark choice band */
.where{background:var(--bg-deep);color:#fff;border-radius:28px;padding:56px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px}
.where .opt{border:1px solid var(--line-deep);border-radius:18px;padding:24px;background:var(--bg-deep-2)}
.where .opt h3{margin-bottom:8px}
.where .opt p{color:var(--text-deep);font-size:15.5px}
.where .link{color:#9ccaff}
@media (max-width:900px){.where{grid-template-columns:1fr;padding:32px}}

/* Closing call to action */
.cta-band{background:var(--bg-deep);color:#fff;border-radius:28px;padding:60px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.cta-band p{color:var(--text-deep);margin-top:10px;max-width:52ch}
@media (max-width:700px){.cta-band{padding:32px}}

/* Tabs */
.tabs{display:flex;gap:6px;background:var(--bg-soft);border:1px solid var(--line);border-radius:999px;padding:6px;width:max-content;margin:0 auto 40px;max-width:100%;overflow:auto}
.tabs button{font:600 15px var(--body);border:0;background:transparent;color:var(--ink-2);padding:10px 20px;border-radius:999px;cursor:pointer;white-space:nowrap}
.tabs button[aria-selected="true"]{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(15,27,45,.12)}
.tabs{scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
@media (max-width:768px){
  .tabs{flex-wrap:wrap;justify-content:center;width:auto;border-radius:18px;overflow:visible}
  .tabs button{padding:8px 14px;font-size:14px}
}
.tab-panel[hidden]{display:none}

/* Comparison table */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:18px}
table.compare{width:100%;border-collapse:collapse;font-size:15.5px;min-width:560px}
.compare th,.compare td{padding:14px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.compare thead th{background:var(--bg-soft);font:700 16px var(--head)}
.compare tbody th{font-weight:600}
.compare td.y:before{content:"";display:inline-block;width:12px;height:7px;border-left:2.5px solid var(--ok);border-bottom:2.5px solid var(--ok);transform:rotate(-45deg);margin-right:8px;vertical-align:3px}
.compare td.n{color:var(--muted)}
.compare tr.group th{background:#fafcfe;color:var(--brand-deep);font-size:13.5px}

/* FAQ */
.faq{display:grid;gap:12px}
.faq details{border:1px solid var(--line);border-radius:14px;padding:18px 22px;background:#fff}
.faq summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary:after{content:"+";font-size:22px;line-height:1;color:var(--brand)}
.faq details[open] summary:after{content:"–"}
.faq details p{margin-top:10px;color:var(--ink-2)}

/* Numbered steps (only for a real sequence) */
.seq{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.seq>div{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff;counter-increment:s}
.seq>div:before{content:counter(s);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--brand-tint);color:var(--brand-deep);font:800 16px var(--head);margin-bottom:14px}
.seq p{color:var(--ink-2);font-size:15.5px;margin-top:6px}
@media (max-width:900px){.seq{grid-template-columns:1fr}}

/* Media placeholder (real screenshot or video after the 7 Dec freeze) */
.ph{border:2px dashed var(--line-2);border-radius:var(--r);background:repeating-linear-gradient(45deg,#f6f8fb 0 12px,#eef2f7 12px 24px);display:grid;place-items:center;color:var(--muted);font:600 14px var(--body);text-align:center;padding:24px;min-height:220px;aspect-ratio:16/10}
.ph.video{aspect-ratio:16/9;background:repeating-linear-gradient(45deg,#13253f 0 12px,#0f1f37 12px 24px);color:#9fb3cf;border-color:#2b4163}
.ph small{display:block;font-weight:500;margin-top:4px}

/* Unconfirmed claim - removed before launch */
.check{display:inline-block;font:700 11px var(--body);letter-spacing:.04em;background:#fde68a;color:#78350f;border-radius:4px;padding:1px 6px;vertical-align:2px;margin-left:4px}

/* Badges */
.badge{display:inline-block;font:700 12px var(--body);padding:3px 10px;border-radius:999px;background:var(--brand-tint);color:var(--brand-deep);vertical-align:3px}
.badge.biz{background:var(--accent-tint);color:var(--accent-deep)}

/* Partners strip */
.logos{display:flex;gap:40px;align-items:center;flex-wrap:wrap}
.logos img{height:40px;width:auto;filter:grayscale(1);opacity:.8}

/* Blog */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:18px;padding:24px;text-decoration:none;background:#fff;transition:border-color .2s,transform .2s}
.post-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.post-card p{color:var(--ink-2);font-size:15.5px}
.post-card h3{font-size:20px}
.post-tag{font:700 12.5px var(--body);color:var(--brand-deep);background:var(--brand-tint);padding:3px 10px;border-radius:999px;align-self:flex-start;display:inline-block}
.post-meta{font-size:13.5px;color:var(--muted);margin-top:auto}
@media (max-width:900px){.posts{grid-template-columns:1fr}}
.article{padding:56px 0 40px}
.article .back{display:inline-block;font-size:14px;color:var(--muted);text-decoration:none;margin-bottom:22px}
.article .back:before{content:"‹ "}
.article h1{font-size:clamp(34px,4.4vw,52px);margin:14px 0 10px}
.article .post-meta{margin-bottom:36px}
.article h2{font-size:clamp(24px,2.6vw,30px);margin:40px 0 12px}
.article h3{margin:28px 0 8px}
.article p,.article li{font-size:18.5px;line-height:1.7;color:#1e2b3c}
.article p{margin-bottom:18px}
.article ul,.article ol{margin:0 0 18px 22px}
.article li{margin-bottom:6px}
.article blockquote{border-left:4px solid var(--accent);padding:6px 0 6px 18px;margin:24px 0;font:600 21px/1.4 var(--head);color:var(--ink)}
.article .callout{background:var(--bg-soft);border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin:24px 0;font-size:16.5px}
.article .sources{font-size:14.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-top:36px}
.article .sources a{word-break:break-all}
.article h2{scroll-margin-top:92px}

/* Blog post: article + right-hand panel ("On this page", "Latest posts"); one column below 1024px */
.post-wrap{display:grid;grid-template-columns:minmax(0,720px) 280px;gap:64px;justify-content:center;align-items:start}
.post-side{position:sticky;top:96px;max-height:calc(100vh - 112px);overflow:auto;padding-top:6px}
.article .side-h{font:700 12.5px var(--body);letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.article .post-side ol,.article .post-side ul{list-style:none;margin:0}
.article .post-side li{font-size:14.5px;line-height:1.35;margin:0}
.toc ol{border-left:2px solid var(--line)}
.toc a{display:block;padding:5px 0 5px 14px;margin-left:-2px;border-left:2px solid transparent;color:var(--ink-2);text-decoration:none}
.toc a:hover{color:var(--ink)}
.toc a.on{color:var(--brand-deep);border-left-color:var(--brand);font-weight:600}
.side-latest{margin-top:28px;border:1px solid var(--line);border-radius:16px;padding:18px 20px;background:var(--bg-soft)}
.side-latest li+li{border-top:1px solid var(--line)}
.side-latest a{display:block;padding:8px 0;text-decoration:none}
.side-latest .t{display:block;font-weight:600;color:var(--ink)}
.side-latest a:hover .t{color:var(--brand-deep)}
.side-latest .d{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.side-all{display:inline-block;margin-top:6px;font-weight:600;font-size:14px;color:var(--brand-deep);text-decoration:none}
.toc-m{border:1px solid var(--line);border-radius:14px;background:var(--bg-soft);padding:12px 18px;margin:0 0 32px}
.toc-m summary{font-weight:600;cursor:pointer}
.article .toc-m ol{margin:8px 0 2px 22px}
.article .toc-m li{font-size:16px;margin:0;padding:4px 0}
.toc-m a{color:var(--ink-2)}
@media (min-width:1024px){.toc-m{display:none}}
@media (max-width:1023px){
  .post-wrap{grid-template-columns:minmax(0,720px);gap:8px}
  .post-side{position:static;max-height:none;overflow:visible;padding:0}
  .post-side .toc{display:none}
  .side-latest{margin-top:0}
}

/* What's new */
.release{display:grid;grid-template-columns:200px 1fr;gap:32px;padding:36px 0;border-top:1px solid var(--line)}
.release .when{font:700 15px var(--head);color:var(--brand-deep)}
.release h3{font-size:24px;margin-bottom:12px}
@media (max-width:700px){.release{grid-template-columns:1fr;gap:8px}}

/* Documentation */
.filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.filter button{font:600 14px var(--body);border:1px solid var(--line-2);background:#fff;border-radius:999px;padding:8px 16px;cursor:pointer}
.filter button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.doc-card{display:flex;gap:16px;align-items:flex-start}
.doc-card .ft{font:800 12px var(--body);background:var(--brand-tint);color:var(--brand-deep);border-radius:8px;padding:8px 10px;flex:none}
.doc-card .soon{font-size:13.5px;color:var(--muted);margin-top:8px;display:block}

/* Forms */
.form{display:grid;gap:16px}
.form .two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form label{font-weight:600;font-size:14.5px;display:block;margin-bottom:6px}
.form input,.form select,.form textarea{width:100%;font:16px var(--body);padding:12px 14px;border:1px solid var(--line-2);border-radius:10px;background:#fff;color:var(--ink)}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #dbeafe}
.form textarea{min-height:130px;resize:vertical}
.form .agree{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--ink-2)}
.form .agree input{width:auto;margin-top:4px}
.form .err{color:#b91c1c;font-size:13.5px;margin-top:4px;display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form .bad .err{display:block}
.form .bad input,.form .bad textarea,.form .bad select{border-color:#ef4444}
.trap{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.form-done{scroll-margin-top:128px;display:none;border:1px solid #bde9cb;background:var(--ok-tint);border-radius:16px;padding:28px}
.form-panel{border:1px solid var(--line);border-radius:22px;padding:32px;background:#fff;box-shadow:var(--shadow)}
@media (max-width:600px){.form .two{grid-template-columns:1fr}.form-panel{padding:22px}}

/* Prose (privacy, plain pages) */
.prose h2{font-size:26px;margin:36px 0 10px}
.prose p,.prose li{color:var(--ink-2);font-size:17px}
.prose p{margin-bottom:14px}
.prose ul{margin:0 0 14px 22px}

/* Footer */
.site-foot{background:var(--bg-deep);color:var(--text-deep);padding:64px 0 28px;margin-top:0;font-size:15px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px}
.foot-grid h4{color:#fff;font:700 15px var(--body);margin-bottom:12px}
.foot-grid a{display:block;text-decoration:none;padding:3px 0}
.foot-grid a:hover{color:#fff}
.foot-brand img{height:36px;width:auto;background:#fff;border-radius:8px;padding:4px 8px;margin-bottom:14px}
.foot-brand p{max-width:36ch;margin-bottom:10px}
.foot-addr{font-size:14px}
.foot-base{display:flex;gap:24px;flex-wrap:wrap;border-top:1px solid var(--line-deep);margin-top:40px;padding-top:20px;font-size:14px}
.foot-base a{text-decoration:none}
.foot-base a:hover{color:#fff}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.foot-grid{grid-template-columns:1fr}}
@media (max-width:768px){.site-foot{padding-bottom:128px}}   /* the page ends clear of the back-to-top and WhatsApp buttons */

/* ---------- Product-screen replica (mirrors iVault's own slate + blue UI) ---------- */
.app{background:#fff;border:1px solid var(--line-2);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;font-family:var(--body);font-size:13px;color:#1e293b;text-align:left;line-height:1.5}
.app-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.app-bar i{width:10px;height:10px;border-radius:50%;background:#cbd5e1;display:inline-block;flex:none}
.app-bar .crumb{margin-left:8px;color:#64748b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-bar .who{margin-left:auto;display:flex;align-items:center;gap:8px;color:#475569;font-size:12px;white-space:nowrap}
.av{width:24px;height:24px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.app-body{display:grid;grid-template-columns:150px 1fr;min-height:340px}
.app-side{border-right:1px solid #e2e8f0;padding:12px 8px;background:#fbfcfe}
.app-side div{padding:7px 10px;border-radius:8px;color:#475569;font-size:12.5px;margin-bottom:2px}
.app-side div.on{background:#eff6ff;color:#1d4ed8;font-weight:600}
.app-main{position:relative;padding:16px 18px;overflow:hidden}
.app-main.static{min-height:0}
.scene{position:absolute;inset:16px 18px;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .45s;pointer-events:none}
.scene.on{opacity:1;transform:none;pointer-events:auto}
.s-title{font-weight:700;font-size:14px;margin-bottom:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pill{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:#f1f5f9;color:#475569}
.pill.blue{background:#eff6ff;color:#1d4ed8}.pill.green{background:var(--ok-tint);color:var(--ok)}.pill.amber{background:var(--accent-tint);color:#92400e}.pill.red{background:#fee2e2;color:#b91c1c}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.doc{border:1px solid #e2e8f0;border-radius:8px;padding:12px;background:#fff;height:250px;position:relative;overflow:hidden}
.doc .l{height:7px;border-radius:4px;background:#e2e8f0;margin:7px 0}
.doc .l.s{width:45%}.doc .l.m{width:70%}
.doc .hl{background:var(--accent-tint);outline:2px solid var(--accent);border-radius:4px;padding:1px 4px;font-weight:700;font-size:11.5px;display:inline-block}
.doc .docname{font-weight:700;font-size:12px;margin-bottom:6px}
.field{margin-bottom:9px}
.field label{display:block;font-size:11px;color:#64748b;margin-bottom:3px}
.field .in{border:1px solid #cbd5e1;border-radius:7px;padding:6px 9px;min-height:30px;font-size:12.5px;background:#fff;white-space:nowrap;overflow:hidden}
.field .in.fill{border-color:var(--brand);box-shadow:0 0 0 3px #dbeafe}
.rows .r{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:8px;padding:8px 10px;border-bottom:1px solid #edf2f7;font-size:12.5px;align-items:center}
.rows .r.h{color:#64748b;font-size:11px;font-weight:600}
.rows .r.new{background:#eff6ff;border-radius:8px}
.task{border:1px solid #e2e8f0;border-radius:10px;padding:12px;background:#fff;margin-bottom:10px}
.task .row{display:flex;align-items:center;gap:10px}
.task .t{font-weight:600}
.task .sub{color:#64748b;font-size:12px}
.mini-btn{font:600 12px var(--body);padding:6px 12px;border-radius:7px;border:1px solid #cbd5e1;background:#fff;color:#1e293b}
.mini-btn.go{background:#16a34a;border-color:#16a34a;color:#fff}
.mini-btn.blue{background:#2563eb;border-color:#2563eb;color:#fff}
.stamp{position:absolute;right:22px;top:128px;transform:rotate(-12deg) scale(1.6);opacity:0;border:3px solid var(--accent);color:var(--accent-deep);font:800 18px var(--head);letter-spacing:.08em;padding:4px 12px;border-radius:8px;transition:all .35s cubic-bezier(.2,1.4,.4,1) .9s;background:rgba(255,255,255,.85)}
.scene.on .stamp,.app-main.static .stamp{opacity:1;transform:rotate(-12deg) scale(1)}
.letter{border:1px solid #e2e8f0;border-radius:8px;padding:16px 18px;background:#fff;font-size:12px;line-height:1.55;height:262px;overflow:hidden}
.letter .lh{display:flex;justify-content:space-between;border-bottom:2px solid var(--brand);padding-bottom:6px;margin-bottom:10px;font-weight:700}
.letter mark{background:var(--brand-tint);color:#1d4ed8;padding:0 3px;border-radius:3px;font-weight:600}
.search{display:flex;align-items:center;gap:8px;border:2px solid var(--brand);border-radius:12px;padding:10px 12px;font-size:15px;background:#fff;box-shadow:0 0 0 4px #dbeafe}
.search .q{flex:1;white-space:nowrap;overflow:hidden}
.caret{display:inline-block;width:2px;height:17px;background:var(--brand);vertical-align:-3px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.result{display:flex;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;margin-top:10px;background:#fff;opacity:0;transform:translateY(6px);transition:all .4s}
.result.show,.app-main.static .result{opacity:1;transform:none}
.thumb{width:38px;height:48px;border-radius:4px;border:1px solid #e2e8f0;flex:none;background:linear-gradient(#f1f5f9 0 0) 6px 8px/26px 4px no-repeat,linear-gradient(#f1f5f9 0 0) 6px 16px/20px 4px no-repeat,linear-gradient(#f1f5f9 0 0) 6px 24px/24px 4px no-repeat,#fff}
.ask,.ask.result{display:block}
.ask{margin-top:14px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;padding:10px 12px;font-size:12.5px}
.ask b{color:#1d4ed8}
.ask .src{display:inline-block;margin-top:6px;font-size:11px;color:#1d4ed8;background:#eff6ff;border-radius:6px;padding:2px 7px}
.scan-bar{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--brand),#7cc0ff);position:absolute;left:12px;right:12px;top:30px;animation:scan 2.4s ease-in-out infinite}
@keyframes scan{0%,100%{top:30px}50%{top:220px}}
.flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.flow .st{background:#fff;border:1px solid var(--line-2);border-radius:10px;padding:9px 12px;font-size:13px;font-weight:600}
.flow .st.ok{border-color:var(--ok);color:var(--ok);background:var(--ok-tint)}
.flow .st.now{border-color:var(--brand);color:var(--brand-deep);background:var(--brand-tint)}
.flow .ar{color:var(--muted)}
.stages{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.stages button{font:600 13px var(--body);border:1px solid var(--line-2);background:#fff;color:var(--ink-2);border-radius:999px;padding:7px 14px;cursor:pointer}
.stages button.on{background:var(--ink);border-color:var(--ink);color:#fff}
@media (max-width:720px){.app-body{grid-template-columns:1fr}.app-side{display:none}.split{grid-template-columns:1fr}.split .doc{display:none}}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
/* Grid children may shrink below their content width (stops the screen replica pushing the page sideways on phones) */
.hero-split .wrap>*,.page-hero.split .wrap>*,.frow>*,.story>*,.where>*,.cta-band>*{min-width:0}
@media (max-width:520px){.app-bar .wn{display:none}.app-bar .crumb{font-size:11px}}
.form[hidden]{display:none}
.form .agree,.form .agree label{font-weight:400}
[hidden]{display:none!important}
/* Fixes from the page build (2026-11-23) */
.page-hero.split{display:block}                 /* the screen replica's .split must not turn a hero into a grid */
.ph{min-height:0;width:100%}                    /* aspect-ratio alone sets the height, so a placeholder never overflows a phone */
.app p{font-size:inherit;color:inherit}         /* page text sizes must not leak into the screen replica */
.sec-dark .sec-head p{color:var(--text-deep)}
.ph{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}
@media (max-width:720px){.app-body{min-height:400px}}
/* Stock clip band under a team page's top (2026-11-24): muted, looping, plays only while on screen; the poster still under reduced motion */
.clip{margin:0;border-radius:var(--r);overflow:hidden;aspect-ratio:21/8;background:#0f1f37 center/cover no-repeat;box-shadow:var(--shadow)}
.clip video{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:720px){.clip{aspect-ratio:16/9}}
/* Real screenshots with a caption, and the self-hosted tour video (2026-11-24) */
.shot{margin:0}
.shot a{display:block}
.shot img{display:block;width:100%;height:auto;border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow);background:#fff}
.shot figcaption{font-size:13.5px;line-height:1.45;color:var(--muted);margin-top:10px}
.vid{display:block;width:100%;aspect-ratio:16/9;border-radius:var(--r);background:#0f1f37;box-shadow:var(--shadow)}
/* Phone fixes from the colleagues' review (2026-11-25) */
@media (max-width:980px){
  .site-head{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}  /* the blur made the header the fixed menu's box: only one item showed */
}
@media (max-width:900px){                         /* the scroll story: the screen is no longer pinned (it covered 70% of a phone); it plays */
  .story .sticky{position:static;padding:0 0 8px}  /* its moments by itself above the steps, and every step's words read in full */
  .story .step{min-height:0;opacity:1;padding:24px 0;border-top:1px solid var(--line)}
  .story .step:first-child{border-top:0}
}
