/* Stockkeel — IBM Plex Sans, deep blue accent, flat light surfaces.
   Spacing: 2 4 8 12 16 24 32 40 48 64 80 96 only. Type: named styles on the Tailwind scale. */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --accent: #1e3a8a;
  --accent-hover: #172e6e;
  --accent-soft: #e8eef9;
  --ok: #166534;
  --warn: #9a3412;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 16px; line-height: 24px;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

/* named text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; }
.body-6 { font-size: 14px; line-height: 20px; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 16px; top: -64px; background: var(--panel); padding: 12px 16px; min-height: 44px; border-radius: 6px; z-index: 50; }
.skip-link:focus { top: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* floating nav */
.nav { position: sticky; top: 12px; z-index: 40; display: flex; justify-content: center; padding: 0 16px; }
.nav-inner {
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.at-top .nav-inner { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); background: rgba(255, 255, 255, 0.6); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; line-height: 28px; min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; padding: 12px; border-radius: 8px; transition: background-color 300ms var(--ease); }
.nav-links a:hover { background: var(--accent-soft); }
.nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-links a.btn { color: #fff; padding: 8px 12px; min-height: 44px; }
.nav-links a.btn:hover { background: var(--accent-hover); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 16px; line-height: 24px; font-weight: 600; border: 1px solid var(--accent); cursor: pointer;
  transition: background-color 300ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn .arrow { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow, .price-strip:hover .arrow { transform: translateX(3px); } }
.btn.secondary { background: var(--panel); color: var(--accent); border-color: var(--line); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn.sm { font-size: 14px; line-height: 20px; padding: 8px 12px; }

/* hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 680px; }
.hero .lede { max-width: 680px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; line-height: 20px; }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 16px; height: 16px; }
.hero-visual { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(30, 58, 138, 0.06); }
#flow .num, #flow #chip, #flow #google-s { transform-box: fill-box; transform-origin: center; }

/* sections */
.section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-width: 880px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; padding: 24px 32px; }
.steps li + li { border-top: 1px solid var(--line); }
.steps .n { grid-row: span 2; color: var(--muted); font-size: 30px; line-height: 36px; font-weight: 500; }
.steps p { margin-top: 4px; color: var(--muted); max-width: 640px; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.benefit { padding: 32px; }
.benefit:nth-child(odd) { border-right: 1px solid var(--line); }
.benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.benefit p { margin-top: 8px; color: var(--muted); }

/* tagline reveal */
.tagline { padding: 80px 0; }
.tagline p { max-width: 900px; font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.js .tagline .w { color: #64748b; transition: color 600ms var(--ease); }
.js .tagline .w.on { color: var(--ink); }

/* channels */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.channel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .channel:hover, .plan:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); border-color: #c7d4ee; }
}
.channel .tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 16px; font-weight: 500; background: #ecfdf3; color: var(--ok); }
.channel p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 20px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-size: 30px; line-height: 36px; font-weight: 600; }
.plan .per { color: var(--muted); font-size: 14px; line-height: 20px; }
.plan .orders { font-weight: 500; }
.plan .btn { margin-top: auto; }
.calc { margin-top: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.calc label { font-weight: 500; }
.calc input { width: 140px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.calc output { font-weight: 600; }
.includes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; color: var(--muted); }
.includes li { display: flex; gap: 8px; }
.includes svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }

/* pricing strip on the home page */
.price-strip { display: grid; grid-template-columns: repeat(5, 1fr) auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.price-strip .tier { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.price-strip .tier + .tier { border-left: 1px solid var(--line); }
.price-strip .t-name { font-size: 14px; line-height: 20px; color: var(--muted); }
.price-strip .t-price { font-size: 20px; line-height: 28px; font-weight: 600; }
.price-strip .t-orders { font-size: 14px; line-height: 20px; color: var(--muted); }
.price-strip .go { flex-direction: row; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.price-strip .go .arrow { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .price-strip:hover { border-color: #c7d4ee; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); } }

/* faq */
.faq { max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; min-height: 44px; font-size: 18px; line-height: 28px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 28px; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 200ms var(--ease-out), opacity 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* final cta */
.final { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final p { color: var(--muted); margin-top: 8px; }

/* docs */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: 36px; line-height: 40px; }
.doc h2 { font-size: 24px; line-height: 32px; margin-top: 40px; }
.doc p, .doc li { color: #1e293b; margin-top: 12px; }
.doc ol, .doc ul { padding-left: 24px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--accent-soft); padding: 2px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.doc .updated { color: var(--muted); font-size: 14px; }
.note { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; line-height: 20px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* hero entrance: title leads, panel and copy overlap, decoration only fades (shrinking gaps, not uniform) */
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 12px)); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .in-1 { --rise: 16px; animation: rise 600ms var(--ease) both; }
.js .in-v { --rise: 12px; animation: rise 600ms var(--ease) 120ms both; }
.js .in-2 { --rise: 10px; animation: rise 500ms var(--ease) 100ms both; }
.js .in-3 { --rise: 8px; animation: rise 500ms var(--ease) 180ms both; }
.js .in-4 { animation: fade 400ms var(--ease) 260ms both; }

/* reveal on scroll: section heads rise; groups stagger their children instead of the container moving (one entrance per container) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > :nth-child(2) { transition-delay: 70ms; }
.js .stagger.in > :nth-child(3) { transition-delay: 120ms; }
.js .stagger.in > :nth-child(4) { transition-delay: 160ms; }
.js .stagger.in > :nth-child(5) { transition-delay: 190ms; }
.js .stagger.in > :nth-child(n+6) { transition-delay: 210ms; }
.js .stagger.in > .channel, .js .stagger.in > .tier { transition: opacity 600ms var(--ease), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; transition: none; }
  .js .in-1, .js .in-2, .js .in-3, .js .in-v { animation: fade 200ms ease both; }
  .channel, .plan, .btn .arrow, .faq summary::after { transition: none; }
  .faq details::details-content { transition: none; }
  .js .tagline .w { transition: none; }
  .btn { transition: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .price-strip { grid-template-columns: repeat(3, 1fr); }
  .price-strip .tier + .tier { border-left: 0; }
  .price-strip .tier { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .tagline p { font-size: 30px; line-height: 36px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .benefits { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 40px 1fr; padding: 24px; }
  .benefit:nth-child(odd) { border-right: 0; }
  .benefit:not(:last-child) { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .price-strip { grid-template-columns: 1fr 1fr; }
  .final { padding: 32px 24px; }
  .hide-sm { display: none; }
  .nav-inner { gap: 8px; }
}
