/* =========================================================
   Drewery & Co. — shared styles (every page uses this file)
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0b1526;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --navy: #0b1526;
  --navy-2: #121e33;
  --accent: #2554e8;
  --accent-soft: #eaf0ff;
  --accent-light: #8fb0ff;
  /* product colours, taken from each product's own branding */
  --lead: #3b82f6;
  --amy: #a78bfa;
  --amy-2: #5eead4;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11,21,38,.04), 0 12px 32px -12px rgba(11,21,38,.14);
  --shadow-lg: 0 2px 4px rgba(11,21,38,.05), 0 32px 64px -24px rgba(11,21,38,.35);
  --ease: cubic-bezier(.22,.8,.2,1);
  --section: clamp(80px, 10vw, 128px);
  --gap: 24px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -.025em; line-height: 1.1; font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo .amp { color: var(--accent); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s, transform .35s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(37,84,232,.08) 50%, transparent 70%); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c2a44; box-shadow: 0 8px 24px -8px rgba(11,21,38,.5); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 8px 24px -8px rgba(143,176,255,.6); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 72px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled, .nav.solid { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 32px; font-size: .93rem; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- shared section pieces ---------- */
section { padding: var(--section) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 16px 0; max-width: 760px; }
.lead-text { font-size: 1.12rem; color: var(--muted); max-width: 600px; }
.section-head { margin-bottom: 56px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

.check { list-style: none; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px;
  background: currentColor; color: var(--c, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* screenshot frame */
.frame { border-radius: 14px; overflow: hidden; background: #11141c; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0d1017; border-bottom: 1px solid rgba(255,255,255,.06); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f3a; }
.frame-bar span { margin-left: 8px; font-size: .72rem; color: #7b8294; }
.frame img { width: 100%; height: auto; }
.caption { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 152px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #d6dbe4 1px, transparent 0); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 0%, #000, transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 14px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- legal / long-form text ---------- */
.prose-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 64px 0 var(--section); }
.toc { position: sticky; top: 104px; align-self: start; font-size: .9rem; }
.toc b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--muted); border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.prose { max-width: 720px; min-width: 0; color: var(--ink-2); }
.prose code { font-size: .88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.toc { min-width: 0; }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; color: var(--ink); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.summary { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; margin-bottom: 36px; color: var(--ink); }
.updated { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* ---------- footer ---------- */
/* Kitbag Hub feature on the homepage */
.hub-feature { padding: 96px 0; background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%); }
.hf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hub-feature .eyebrow { color: #4f46e5; }
.hf-text .lead-text { margin: 14px 0 22px; }
.hf-price { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hf-price b { font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.04em; color: #4f46e5; }
.hf-price span { color: var(--ink-2); font-size: .95rem; line-height: 1.4; } .hf-price s { color: var(--muted); }
.hub-feature .check { margin-bottom: 26px; }
.hf-shot { display: block; } .hf-shot .frame { box-shadow: 0 30px 70px rgba(49,46,129,.25); }
.btn-hub { border-color: #4f46e5; color: #4338ca; } .btn-hub:hover { background: #eef2ff; }
@media (max-width: 900px) { .hf-grid { grid-template-columns: 1fr; gap: 36px; } .hub-feature { padding: 64px 0; } }
/* Kitbag Hub band above the footer on every page (site.js hides it where it doesn't belong) */
.hub-promo { padding: 56px 0; background: radial-gradient(120% 140% at 0% 0%, #4f46e5 0%, #312e81 45%, #0b1526 100%); color: #fff; }
.hub-promo-in { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hp-text { flex: 1 1 520px; max-width: 720px; }
.hp-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c7d2fe; margin-bottom: 10px; }
.hub-promo h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; }
.hub-promo h2 img { border-radius: 11px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.hub-promo h2 span { color: #a5b4fc; }
.hub-promo p { color: rgba(255,255,255,.8); margin: 12px 0 18px; max-width: 600px; }
.hub-promo s { color: rgba(255,255,255,.55); }
.hp-icons { display: flex; gap: 8px; flex-wrap: wrap; } .hp-icons img { border-radius: 9px; background: rgba(255,255,255,.08); }
.hp-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 240px; }
.hp-cta .btn { justify-content: center; }
.hp-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hp-ghost:hover { background: rgba(255,255,255,.08); }
.hp-cta small { color: rgba(255,255,255,.6); text-align: center; }
@media (max-width: 640px) { .hub-promo { padding: 40px 0; } .hp-cta { width: 100%; } }
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-cols a { display: block; margin-bottom: 10px; transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; font-size: .85rem; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  /* full-screen menu */
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 72px); flex-direction: column; gap: 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-links > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line);
    font-family: "Inter Tight", "Inter", sans-serif; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
    opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .nav-links > a::after { content: "→"; font-size: 1.1rem; color: var(--muted); }
  .nav-links > a:nth-child(2) { transition-delay: .05s; } .nav-links > a:nth-child(3) { transition-delay: .1s; } .nav-links > a:nth-child(4) { transition-delay: .15s; }
  .menu-extra { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; opacity: 0; transition: opacity .4s .2s; }
  .menu-extra .btn { height: 52px; font-size: 1rem; }
  .menu-extra p { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 6px; }
  .nav.open { background: #fff; border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open .nav-links > a { opacity: 1; transform: none; }
  .nav.open .menu-extra { opacity: 1; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .prose-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  /* legal pages: contents become a swipeable row of chips */
  .toc { position: sticky; top: 72px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 12px 20px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .toc::-webkit-scrollbar { display: none; }
  .toc b { display: none; }
  .toc a { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line); border-left-width: 1px; border-radius: 999px; padding: 7px 14px; font-size: .85rem; }
  .footer-cols { gap: 40px; }
  .section-head { margin-bottom: 40px; }
}
@media (min-width: 901px) { .menu-extra { display: none; } }
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .hide-xs { display: none; }
  .toc { margin: 0 -16px; padding: 12px 16px; }
  .page-head { padding: 120px 0 40px; }
  .footer { padding-top: 48px; }
  .footer-top { gap: 32px; margin-bottom: 32px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; width: 100%; }
  .btn { min-height: 44px; }
  .prose table { display: block; overflow-x: auto; }
}
/* ---------- motion helpers (driven by js/site.js) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--amy-2)); }
/* headings rise in word by word */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split.in .sw > i, .split.go .sw > i { transform: none; }
/* infinite marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* soft light that follows the cursor inside [data-glow] sections */
[data-glow] { --gx: 50%; --gy: 50%; }
[data-glow]::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(143,176,255,.12), transparent 60%); }
[data-glow]:hover::after { opacity: 1; }
.nav-links .nav-hub { color: #4338ca; font-weight: 600; }
.nav-links .nav-hub span { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: #eef2ff; font-size: .78rem; }

/* ---- Drewery & Co. and its businesses: links between the group site and Kitbag (/kitbag/) ---- */
.footer-parent { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.footer-parent:hover { color: var(--ink); }
.footer-parent img { border-radius: 6px; }
.footer-biz { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-biz img { border-radius: 5px; }
.footer-soon { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); opacity: .75; }
.menu-parent { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }
/* the Kitbag by Drewery wordmark is longer than the old one: keep each menu item on one line on mid-size screens */
.nav-links > a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1140px) { .nav-links { gap: 20px; font-size: .9rem; } }

/* ---------- in development (SITE.salesOpen false in js/site.js) ---------- */
.dev-banner { position: fixed; inset: 0 0 auto 0; z-index: 45; background: #1f2a1f; color: #fff; text-align: center; font-size: .92rem; line-height: 1.4; padding: 9px 16px; }
.dev-banner a { color: #ffd76a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.btn.dev-soon { opacity: .8; border-style: dashed; }
.btn.dev-soon::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #f0a500; margin-right: .5em; vertical-align: .08em; }
html.has-dev body { padding-top: var(--devh, 38px); }
html.has-dev .nav { top: var(--devh, 38px); }
html.has-dev.menu-open .dev-banner { display: none; }
html.has-dev.menu-open .nav { top: 0; }
