/* Bannerbird marketing page. Direction D, "The stack": the page is a stack of
   storefront bars, and each bar is a feature that opens to explain itself.
   Colours and type come from brand/guide/tokens.json. */

:root {
  --surface: #ffffff; --cloud: #f5f7fb; --line: #dde3ec;
  --ink: #1e2a3b; --ink-muted: #5b6678;
  --coral: #ff6b4a; --sunbeam: #ffc93c; --sky: #3d8bfd; --leaf: #2bb673;
  --link: #1f6fe0; --focus: #1f6fe0;
  --sky-soft: #dceaff; --leaf-soft: #dff5ea;
  --display: "Plus Jakarta Sans", ui-rounded, system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font: 16px/24px var(--sans); color: var(--ink); background: var(--surface); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { top: 12px; }
/* Panels use hidden="until-found" so find-in-page and search engines can still read them. */
[hidden]:not([hidden="until-found"]) { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 16px/1 var(--display); padding: 15px 24px; border-radius: 999px; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #ff5a35; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.badge { display: inline-block; font: 600 12px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-free { background: var(--leaf-soft); color: #145c39; }
.badge-pro { background: var(--sunbeam); color: var(--ink); }
.badge-soon { background: #fff; color: var(--ink-muted); }

/* Header */
header.site { display: flex; align-items: center; gap: 28px; padding: 24px 0 20px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
header.site nav { margin-left: auto; }
header.site ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
header.site nav a { color: var(--ink); text-decoration: none; }
header.site nav a:hover { text-decoration: underline; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 32px 0 28px; border-top: 1px solid var(--line); }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
h1 { font-size: 50px; line-height: 54px; letter-spacing: -.03em; font-weight: 800; }
h1 span { display: block; margin-top: 10px; font-size: 24px; line-height: 32px; letter-spacing: -.01em; font-weight: 600; color: var(--ink-muted); max-width: 30em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.ticks { display: flex; gap: 6px 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-muted); }
.ticks li::before { content: "✓"; color: var(--leaf); font-weight: 800; margin-right: 6px; }
.price-tag { text-align: right; font-size: 14px; color: var(--ink-muted); }
.price-tag b { display: block; font: 800 64px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.hint { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-muted); margin: 0 0 10px; }
.hint p::after { content: " ↓"; }
.motion { font: 600 13px var(--sans); color: var(--ink-muted); background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.motion:hover { color: var(--ink); }

/* The stack */
.stack { display: grid; gap: 6px; }
.bar { border-radius: var(--r-md); overflow: hidden; background: var(--bg); color: var(--fg); transition: background .5s, color .5s; }
.t-ink   { --bg: var(--ink);     --fg: #fff; }
.t-coral { --bg: var(--coral);   --fg: var(--ink); }
.t-sun   { --bg: var(--sunbeam); --fg: var(--ink); }
.t-line  { --bg: #fff;           --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.t-cloud { --bg: var(--cloud);   --fg: var(--ink); }
.t-sky   { --bg: var(--sky-soft); --fg: var(--ink); }
.t-leaf  { --bg: var(--leaf-soft); --fg: var(--ink); }
.t-tpl   { --bg: var(--tbg, var(--ink)); --fg: var(--tfg, #fff); background-image: var(--timg, none); }

.head { position: relative; display: grid; grid-template-columns: 24px 200px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center;
  padding: 12px 18px; min-height: 58px; }
.head:hover .pm { transform: scale(1.15); }
.bar.open .head:hover .pm { transform: rotate(45deg) scale(1.15); }
.n { font: 600 12px/1 var(--mono); opacity: .6; }
.head h2, .head h3 { font: 700 15px/20px var(--display); }
.tg { all: unset; cursor: pointer; }
.tg::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.head:has(.tg:focus-visible) { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: var(--r-md); }
.live { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; line-height: 21px; min-width: 0; }
.live button, .live input { position: relative; z-index: 2; }
.pm { width: 18px; height: 18px; position: relative; transition: transform .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: currentColor; border-radius: 2px; }
.pm::after { transform: rotate(90deg); }
.bar.open .pm { transform: rotate(45deg); }
.t-sun .badge-pro, .t-tpl .badge-free { background: #fff; }

.more .in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 36px; padding: 2px 18px 22px 74px; font-size: 15px; line-height: 23px; }
.more .in > div > p + * { margin-top: 14px; }
.fl { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.fl li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: 14px; }
.fl li:last-child { border-bottom: 0; }
.pl { flex: none; font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }
.pl.pro { background: var(--sunbeam); color: var(--ink); box-shadow: none; }
.t-sun .pl.pro { background: #fff; }

/* Controls inside panels */
.ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.ctl input[type=range] { flex: 1; min-width: 140px; accent-color: var(--sunbeam); }
.ctl output { font-variant-numeric: tabular-nums; min-width: 3ch; }
.seg { font: 600 13px/1 var(--sans); color: inherit; background: transparent; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent); }
.seg small { font: 600 10px var(--mono); opacity: .75; }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.t-ink .seg[aria-pressed="true"] { background: #fff; color: var(--ink); }
.btn-mini { font: 700 14px/1 var(--display); border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--leaf); color: var(--ink); }
.btn-mini.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }

/* 01 Free-shipping meter */
.meter { display: inline-block; width: 150px; height: 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; }
.meter b { display: block; height: 100%; width: 36%; background: var(--sunbeam); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1), background .4s; }
#ship.done .meter b { background: var(--leaf); }

/* 02 Timer styles */
.timer { font-variant-numeric: tabular-nums; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.timer.boxes span { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 0 6px; min-width: 30px; text-align: center; }
.timer.flip span { position: relative; background: #111; color: #fff; border-radius: 5px; padding: 2px 6px; font: 800 17px/22px var(--display); min-width: 32px; text-align: center; }
.timer.flip span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.18); }
.timer.flip span.tick { animation: flip .35s ease-out; }
@keyframes flip { from { transform: perspective(200px) rotateX(-70deg); } to { transform: none; } }
.timer .sep { opacity: .6; }

/* 03 Copy code */
.code { font: 600 13px/1 var(--mono); color: inherit; background: rgba(255,255,255,.55); border: 1px dashed currentColor; border-radius: var(--r-sm); padding: 4px 8px; cursor: pointer; }
.code:hover { background: #fff; }

/* 04 Rotating */
.rot { overflow: hidden; height: 22px; }
.rot-msg { display: block; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.rot-msg.out { transform: translateY(-100%); opacity: 0; }
.rot-msg.in { transform: translateY(100%); opacity: 0; transition: none; }

/* 05 Mini stack */
.mini-stack { flex-direction: column; align-items: stretch; gap: 3px; max-width: 360px; }
.mini { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; line-height: 16px; padding: 4px 10px; border-radius: 5px; }
.mini.ink { background: var(--ink); color: #fff; }
.mini.coral { background: var(--coral); color: var(--ink); font-weight: 600; }
.mini .meter { width: 70px; height: 4px; }
.loop { animation: loop 4s ease-in-out infinite; }
@keyframes loop { 0% { width: 25%; } 70%, 100% { width: 100%; background: var(--leaf); } }

/* 06 Placement chips and diagram */
.chips { gap: 6px; }
.chip { font: 600 13px/1 var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.diagram { display: grid; justify-items: start; gap: 8px; }
.dpage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; }
.dpage i { position: absolute; display: block; border-radius: 2px; }
.d-img { left: 7%; top: 22%; width: 40%; height: 52%; background: #ffe7c2; }
.d-t1 { left: 53%; top: 24%; width: 36%; height: 6%; background: var(--ink); }
.d-t2 { left: 53%; top: 35%; width: 24%; height: 4%; background: var(--line); }
.d-btn { left: 53%; top: 50%; width: 40%; height: 10%; background: var(--ink); }
.d-bar { left: 0; right: 0; top: 0; height: 11%; background: var(--coral); transition: all .55s cubic-bezier(.65,0,.35,1); border-radius: 0; z-index: 2; }
.d-drawer { top: 0; bottom: 0; right: 0; width: 42%; background: var(--cloud); border-left: 1.5px solid var(--ink); transform: translateX(105%); transition: transform .55s cubic-bezier(.65,0,.35,1); }
.d-drawer i { position: absolute; left: 10%; right: 10%; height: 8%; background: var(--line); }
.d-drawer i:first-child { top: 30%; } .d-drawer i:last-child { top: 44%; }
.diagram[data-place="sticky"] .d-bar { box-shadow: 0 2px 0 var(--ink); }
.diagram[data-place="sticky"] .d-img, .diagram[data-place="sticky"] .d-t1, .diagram[data-place="sticky"] .d-t2, .diagram[data-place="sticky"] .d-btn { animation: scroll 2.4s ease-in-out infinite alternate; }
@keyframes scroll { to { transform: translateY(-35%); } }
.diagram[data-place="bottom"] .d-bar { top: 89%; }
.diagram[data-place="product"] .d-bar { left: 53%; right: 7%; top: 64%; height: 8%; border-radius: 3px; }
.diagram[data-place="cart"] .d-bar { left: 7%; right: 7%; top: 82%; height: 9%; border-radius: 3px; }
.diagram[data-place="drawer"] .d-drawer { transform: none; }
.diagram[data-place="drawer"] .d-bar { left: 61%; right: 3%; top: 14%; height: 9%; border-radius: 3px; z-index: 3; }
.d-cap { font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .75; }

/* 07 Template swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sw { font: 600 12px/1.2 var(--sans); text-align: left; color: inherit; background: transparent; border: 0; cursor: pointer; padding: 0 0 4px; border-radius: 6px; }
.sw i { display: block; height: 22px; border-radius: 5px; margin-bottom: 5px; box-shadow: inset 0 0 0 1px rgba(30,42,59,.18); }
.sw small { font: 600 10px var(--mono); opacity: .7; }
.sw[aria-pressed="true"] i { outline: 2px solid currentColor; outline-offset: 2px; }

/* 08 Targeting */
.who { font: 600 12px/1 var(--sans); background: rgba(255,255,255,.14); padding: 5px 10px; border-radius: 999px; }

/* 09 Scheduling */
.sched .track { position: relative; display: inline-block; width: 120px; height: 2px; background: color-mix(in srgb, currentColor 35%, transparent); }
.sched .dot { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: dot 5s ease-in-out infinite; }
@keyframes dot { from { left: 0; } to { left: calc(100% - 10px); } }

/* 10 A/B */
.ab { display: inline-flex; border-radius: 999px; overflow: hidden; font: 700 12px/1 var(--sans); }
.ab span { padding: 5px 10px; background: rgba(255,255,255,.16); }
.ab span + span { background: var(--leaf); color: var(--ink); }
.ab.done span:first-child { display: none; }
.abchart { display: flex; align-items: end; gap: 18px; height: 150px; padding-top: 10px; }
.abchart div { display: grid; justify-items: center; align-content: end; gap: 6px; height: 100%; font: 600 13px var(--sans); }
.abchart i { display: block; width: 64px; height: var(--h); background: rgba(255,255,255,.3); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.abchart .win i { background: var(--leaf); }
.bar.open .abchart i { animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }

/* 11 Stats */
.count { font-variant-numeric: tabular-nums; }
.spark { display: inline-flex; align-items: end; gap: 3px; height: 20px; }
.spark i { width: 5px; height: var(--h); background: var(--sky); border-radius: 2px; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.spark i:nth-child(2) { animation-delay: .08s; } .spark i:nth-child(3) { animation-delay: .16s; } .spark i:nth-child(4) { animation-delay: .24s; }
.spark i:nth-child(5) { animation-delay: .32s; } .spark i:nth-child(6) { animation-delay: .40s; } .spark i:nth-child(7) { animation-delay: .48s; }

/* 12 Checks and steps */
.checks { gap: 6px 16px; }
.checks span { display: inline-flex; gap: 6px; align-items: center; animation: check 6s infinite both; }
.checks span::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: var(--ink); font-size: 11px; font-weight: 800; }
.checks span:nth-child(2) { animation-delay: .5s; } .checks span:nth-child(3) { animation-delay: 1s; }
@keyframes check { 0%, 4% { opacity: .2; } 10%, 92% { opacity: 1; } 100% { opacity: .2; } }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }

/* 13 Load meter */
.load { display: inline-block; width: 46px; height: 6px; border-radius: 999px; background: var(--cloud); overflow: hidden; }
.load b { display: block; height: 100%; width: 100%; background: var(--leaf); transform-origin: left; animation: load 3s ease-out infinite; }
@keyframes load { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }

/* 14 Email */
.email .field { background: #fff; color: var(--ink-muted); border-radius: var(--r-sm); padding: 4px 10px; font-size: 13px; min-width: 150px; }
.email .go { background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }

.note { font-size: 13px; color: var(--ink-muted); margin: 10px 0 0; }

/* Pricing */
section.pricing, section.faq { padding-top: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: 34px; line-height: 40px; letter-spacing: -.02em; }
.period { display: flex; gap: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.plan { border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; }
.plan.free { box-shadow: inset 0 0 0 2px var(--ink); }
.plan.pro { background: var(--cloud); }
.plan .badge { justify-self: start; }
.plan .amt { font: 800 46px/1 var(--display); letter-spacing: -.02em; }
.plan .amt small { font: 600 16px var(--sans); color: var(--ink-muted); margin-left: 4px; }
.plan > p:not(.amt) { color: var(--ink-muted); font-size: 15px; }
.plan .fl { margin: 6px 0 10px; }
.plan .fl li { justify-content: start; gap: 10px; }
.plan .fl li::before { content: "✓"; color: var(--leaf); font-weight: 800; }
.plan .btn { justify-self: start; }

/* FAQ */
.q .head { grid-template-columns: minmax(0, 1fr) 18px; }
.q .head h3 { font-weight: 600; font-size: 16px; }
.q .more .in { display: block; padding-left: 18px; max-width: 46em; color: var(--ink-muted); }

/* Final call to action */
.final { margin: 72px 0 0; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 52px 24px; text-align: center; }
.final h2 { font-size: 40px; line-height: 46px; letter-spacing: -.02em; }
.final p { color: #c7d0dd; font-size: 17px; margin: 10px 0 24px; }
/* Long-form pages (privacy.html) */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 48px; }
.doc h1 { font-size: 40px; line-height: 46px; letter-spacing: -.02em; }
.doc h2 { font-size: 22px; line-height: 28px; margin: 36px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc h2[id] { scroll-margin-top: 16px; }
.doc .doc-toc { background: var(--cloud); border-radius: var(--r-md); padding: 14px 18px; margin: 0 0 8px; }
.doc .doc-toc ul { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 760px) { .doc .doc-toc ul { columns: 1; } }
.doc li { margin: 4px 0; }
.doc .doc-meta { color: var(--ink-muted); margin: 10px 0 24px; }
.doc code { font: 14px var(--mono); background: var(--cloud); padding: 1px 5px; border-radius: var(--r-sm); }

footer.site { padding: 28px 0 44px; font-size: 14px; color: var(--ink-muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; gap: 18px; }
footer.site a { color: var(--ink-muted); }

/* Phones and small tablets */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  header.site { gap: 12px; }
  header.site ul { display: none; }
  .intro { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  h1 { font-size: 36px; line-height: 40px; }
  h1 span { font-size: 19px; line-height: 27px; }
  .price-tag { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .price-tag b { font-size: 44px; }
  .ctas .btn { flex: 1 1 auto; }
  .head { grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "name badge pm" "live live live"; gap: 8px 10px; padding: 12px 14px; }
  .head .n { display: none; }
  .head h2 { grid-area: name; }
  .head .badge { grid-area: badge; }
  .head .pm { grid-area: pm; }
  .head .live { grid-area: live; font-size: 14px; gap: 8px 10px; }
  .more .in { grid-template-columns: 1fr; padding: 0 14px 18px; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .meter { width: 110px; }
  .plans { grid-template-columns: 1fr; }
  .final h2 { font-size: 32px; line-height: 38px; }
  footer.site .wrap { flex-direction: column; }
}

/* "Pause motion" stops every animation. Visitors who ask their system for less motion
   start with motion off; pressing "Play motion" adds .motion-ok and turns it back on. */
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.motion-ok) *, html:not(.motion-ok) *::before, html:not(.motion-ok) *::after { animation: none !important; transition: none !important; }
}
