/* Coldpack site: one stylesheet for the landing page and the docs. */
:root {
  --bg: #fbfdff; --bg2: #eef4fb; --card: #ffffff; --line: #d6e1ef; --ink: #0b2545; --mute: #4f6380;
  --blue: #1d6bff; --blue2: #1457d9; --cyan: #27b6e8; --ok: #14935a; --warn: #d9730d;
  --code-bg: #0f1d33; --code-ink: #e6eefb; --shadow: 0 1px 2px rgba(11,37,69,.06), 0 12px 32px rgba(11,37,69,.10);
  --grad: linear-gradient(180deg, #4fd2ff 0%, #1457d9 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101f; --bg2: #0c1830; --card: #101d36; --line: #223454; --ink: #e9f1fc; --mute: #9db0cc;
    --blue: #5a97ff; --blue2: #3d7df0; --cyan: #4cc9f5; --ok: #3fd18a; --warn: #ffa54d;
    --code-bg: #0a1426; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 780; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font: .88em var(--mono); background: var(--bg2); border: 1px solid var(--line); padding: .08em .35em; border-radius: 6px; }
pre { background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; border-radius: 14px; overflow: auto; font: 14px/1.6 var(--mono); border: 1px solid var(--line); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.mute { color: var(--mute); }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.grad-text { background: linear-gradient(95deg, #1fb0e6, #1d6bff 55%, #6a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
.nav .links { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; }
.nav .links a { color: var(--mute); }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .links a.btn.primary, .nav .links a.btn.primary:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { color: #fff; border: 0; background: var(--grad); box-shadow: 0 8px 24px rgba(29,107,255,.35); }
.btn.sm { padding: 8px 16px; font-size: .9rem; }
@media (max-width: 760px) { .nav .links a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(79,210,255,.30), transparent 70%), radial-gradient(40% 40% at 85% 20%, rgba(106,92,255,.18), transparent 70%), radial-gradient(40% 40% at 10% 30%, rgba(29,107,255,.16), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--mute); max-width: 640px; margin: 0 0 32px; line-height: 1.45; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .status { margin: 18px 0 0; font-size: .9rem; color: var(--mute); }
.hero-shot { max-width: 340px; justify-self: center; }
.hero-proof { text-align: center; margin: 56px 0 0; font-size: 1.15rem; padding: 0 24px; }
.hero-proof b { font-size: 2rem; letter-spacing: -.03em; margin-right: 6px; background: linear-gradient(95deg, #1fb0e6, #1d6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* A tall popover capture shows only its top part: the number, not the menu rows. */
.shot-crop { max-width: 340px; margin-inline: auto; aspect-ratio: 640 / 800; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
@media (max-width: 900px) {
  .hero { padding-top: 56px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero-shot { max-width: 300px; aspect-ratio: 640 / 760; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .hero-proof { margin-top: 28px; }
}
.shot { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; background: var(--card); }
/* A wide window capture on a phone: show its left part at a readable size. */
@media (max-width: 560px) { .shot.wide { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: left top; } }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--mute); margin-top: 12px; text-align: center; }

/* Sections */
section { padding: 104px 0; }
section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p { color: var(--mute); margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.split h2 { text-align: left; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: var(--mute); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: .62em; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.fact { text-align: center; padding: 28px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.fact b { display: block; font-size: 2.4rem; letter-spacing: -.03em; background: linear-gradient(95deg, #1fb0e6, #1d6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: var(--mute); font-size: .95rem; }
.steps { margin: 22px 0 24px; padding-left: 1.3em; display: grid; gap: 14px; color: var(--mute); }
.steps li::marker { color: var(--blue); font-weight: 700; }
.steps li strong { color: var(--ink); }
.card-cta { margin-top: 18px !important; }
.footnote { font-size: .85rem; color: var(--mute); margin-top: 18px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--mute); }

/* Footer */
footer { padding: 56px 0 72px; border-top: 1px solid var(--line); color: var(--mute); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Reveal on scroll (only when scripting runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Docs */
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding: 40px 0 96px; align-items: start; }
.side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: .95rem; padding-right: 8px; }
.side h4 { margin: 22px 0 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.side h4:first-child { margin-top: 0; }
.side a { display: block; padding: 6px 12px; border-radius: 9px; color: var(--ink); }
.side a:hover { background: var(--bg2); text-decoration: none; }
.side a.on { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-weight: 650; }
.doc { min-width: 0; max-width: 820px; }
.doc h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.doc h2 { font-size: 1.7rem; margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.8em; }
.doc .lede { font-size: 1.22rem; color: var(--mute); line-height: 1.5; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.doc td code { white-space: nowrap; }
.doc figure { margin: 1.8em 0; }
.doc figure .diagram { padding: 18px; }
.doc figure .shot { max-width: 100%; }
.callout { border-radius: 16px; padding: 16px 20px; margin: 1.4em 0; border: 1px solid var(--line); background: var(--bg2); }
.callout b:first-child { display: block; margin-bottom: 4px; }
.callout.note { border-left: 4px solid var(--blue); }
.callout.safe { border-left: 4px solid var(--ok); }
.callout.warn { border-left: 4px solid var(--warn); }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; min-width: 40%; background: var(--card); }
.pn a small { display: block; color: var(--mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.pn a:last-child { text-align: right; margin-left: auto; }
.crumbs { font-size: .9rem; color: var(--mute); margin-bottom: 18px; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); }
}
.cards.docs-cards { margin-top: 28px; }
.cards.docs-cards a.card { color: inherit; display: block; }
.cards.docs-cards a.card:hover { text-decoration: none; transform: translateY(-2px); }
.cards.docs-cards a.card h3 { color: var(--ink); margin-top: 0; }
kbd { font: .85em var(--mono); background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; }
