/* BindandBill landing page.
   Tokens and base components come from the "Industry" design system
   (_source/_ds/.../styles.css); only what this page uses is kept here. */

/* — fonts (self-hosted, latin subset) — */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }

/* — tokens — */
:root {
  --color-bg: #ffffff;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --color-accent-100: #eef6ff;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --text-muted: color-mix(in srgb, var(--color-text) 80%, transparent);
  --text-subtle: color-mix(in srgb, var(--color-text) 72%, transparent);

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
  --gutter: clamp(20px, 5vw, 72px);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-transform: uppercase; margin: 0; }
p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* — components — */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--color-accent); border-radius: 8px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; line-height: 1.2;
  background: var(--color-accent); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--color-accent-600); color: #fff; text-decoration: none; }
.btn:active { background: var(--color-accent-700); }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.kicker {
  display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700);
}
.rule { height: 1px; border: 0; margin: 0 0 28px; background: var(--color-divider); }
.h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; letter-spacing: 0.01em; }
.nowrap { white-space: nowrap; }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  gap: clamp(16px, 3vw, 32px); padding: 14px var(--gutter);
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
}
.nav-brand { margin-right: auto; }
.nav-brand img { height: 22px; width: auto; }
.nav-link { color: inherit; font-size: 14px; }
.nav-link:hover { color: var(--color-accent); text-decoration: none; }

/* — layout — */
main { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(64px, 8vw, 112px); scroll-margin-top: 72px; }

/* — hero — */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 1.02; letter-spacing: 0.01em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--color-accent); }
.hero-lede { font-size: 18px; max-width: 52ch; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-subtle); }
.checks li { display: flex; gap: 6px; align-items: center; }
.checks svg { stroke: var(--color-accent-700); }

.hero-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.shot { overflow: hidden; display: flex; flex-direction: column; background: var(--color-bg); }
.shot figcaption {
  display: flex; gap: 8px; align-items: baseline; padding: 10px 14px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.shot figcaption b { font-weight: inherit; color: var(--color-accent-700); }
.shot img { width: 100%; height: auto; object-fit: cover; }
.shot-1 { grid-column: 1 / 11; grid-row: 1; }
.shot-1 img { aspect-ratio: 2374 / 894; }
.shot-2 { grid-column: 4 / 13; grid-row: 2; margin-top: -24px; z-index: 1; box-shadow: var(--shadow-lg); }
.shot-2 img { aspect-ratio: 850 / 720; object-position: top center; }

/* — partners — */
.partners {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 20px 0;
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
  font-size: 14px; color: var(--text-subtle);
}
.partners .kicker { margin: 0; }
.partners img { width: auto; }
.logo-anddone { height: 18px; }
.logo-ipfs { height: 44px; }

/* — how it works — */
.how-title { max-width: 22ch; margin-bottom: 40px; }
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 18px 20px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid var(--color-divider);
}
.step[aria-pressed="true"] { background: var(--color-accent-100); border-color: var(--color-accent); }
.step-num { grid-row: span 2; padding-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent-700); }
.step-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }
.step-body { font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.step-fig {
  position: sticky; top: 96px; width: 100%; max-width: 100%; margin: 0 auto;
  overflow: hidden; background: var(--color-bg); transition: max-width 300ms ease;
}
.step-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; transition: aspect-ratio 300ms ease; }
.step-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; opacity: 0; transition: opacity 250ms ease;
}
.step-frame img.is-active { opacity: 1; }
.step-frame.is-stacked img { object-fit: contain; object-position: center; }
@media (prefers-reduced-motion: reduce) { .step-fig, .step-frame, .step-frame img { transition: none; } }

/* — walkthrough video — */
.watch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 32px; }
.watch-head p { font-size: 15px; line-height: 1.5; max-width: 44ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.player { overflow: hidden; }
.stage { position: relative; aspect-ratio: 1440 / 1026; background: var(--color-bg); }
.stage video { width: 100%; height: 100%; object-fit: cover; }
.stage-toggle {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; cursor: pointer; background: color-mix(in srgb, var(--color-bg) 40%, transparent);
}
.play-icon {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px;
  border-radius: 12px; background: var(--color-accent); color: #fff;
}
.stage-loading {
  display: none; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--color-accent-800); background: var(--color-bg); padding: 6px 10px; border: 1px solid var(--color-divider);
}
.player.is-playing .stage-toggle { background: transparent; }
.player.is-playing .play-icon { display: none; }
.player.is-loading .stage-toggle { background: color-mix(in srgb, var(--color-bg) 40%, transparent); }
.player.is-loading .stage-loading { display: block; }
.player.is-loading .play-icon { display: none; }

.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--color-divider); }
.chapter {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px;
  text-align: left; font: inherit; color: var(--color-text); cursor: pointer;
  background: transparent; border: 0; border-left: 1px solid var(--color-divider);
}
.chapter:first-child { border-left: 0; }
.chapter[aria-current="true"] { background: var(--color-accent-100); }
.chapter-head { display: flex; gap: 8px; align-items: baseline; }
.chapter-num { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent-700); }
.chapter-label { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.chapter-bar { display: block; height: 2px; background: var(--color-divider); }
.chapter-bar span { display: block; height: 2px; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }

/* — features — */
.features { margin: 0; padding: 0; list-style: none; }
.feature {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 24px; padding: 24px; align-items: baseline;
}
.feature + .feature { border-top: 1px solid var(--color-divider); }
.feature-num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent-700); }
.feature h3 { font-size: 24px; line-height: 1.15; letter-spacing: 0.02em; }
.feature p { color: var(--text-muted); }

/* — pricing — */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.price {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(96px, 16vw, 200px); line-height: 0.9; letter-spacing: -0.01em; color: var(--color-accent);
}
.pricing-copy { display: flex; flex-direction: column; gap: 16px; }
.pricing-copy p { font-size: 17px; max-width: 48ch; }

/* — closing CTA — */
.signup { padding-bottom: clamp(64px, 8vw, 112px); }
.signup-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: clamp(28px, 5vw, 56px); text-align: center;
}
.signup-card h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.signup-card p { font-size: 16px; max-width: 42ch; }
.signup-card .btn { margin-top: 8px; }

/* — footer — */
.footer { border-top: 1px solid var(--color-divider); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--text-subtle);
}
.footer-inner img { height: 18px; width: auto; }
.footer-by { margin-right: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   Phones (portrait, up to 600px). Tablets and wider keep the layout above.
   The step figure's phone framing is also skipped in js/site.js at this width.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  /* nav: brand + one button */
  .nav { gap: 12px; padding-block: 12px; }
  .nav-link { display: none; }
  .nav-brand img { height: 20px; }
  .nav .btn-sm { min-height: 40px; }

  /* shared */
  .section { padding-top: 56px; scroll-margin-top: 64px; }
  .h2 { font-size: 30px; }
  .rule { margin-bottom: 20px; }
  .btn { min-height: 48px; }

  /* hero: full-width CTA, screenshots stacked instead of overlapping */
  .hero { gap: 36px; padding: 32px 0 44px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 46px); }
  .hero-lede { font-size: 17px; }
  .hero-copy > .btn { align-self: stretch; }
  .hero-shots { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shot-1, .shot-2 { grid-column: 1; grid-row: auto; margin-top: 0; }
  .shot-2 { box-shadow: none; }

  /* partners: each logo stays on the same row as its own caption */
  .partners { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 14px 16px; }
  .partners .kicker { grid-column: 1 / -1; }

  /* how it works: the screenshot sits above the steps and stays in view
     under the nav while you scroll through them */
  .how-title { margin-bottom: 28px; }
  .how-grid { gap: 16px; }
  .step-fig {
    order: -1; top: 64px; z-index: 1; max-width: none;
    box-shadow: 0 10px 16px -14px color-mix(in srgb, #2b2b2d 40%, transparent);
  }
  .step-frame { aspect-ratio: 4 / 3; }
  .steps { gap: 10px; }
  .step { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 14px 16px; }
  .step-num { padding-top: 3px; }
  .step-title { font-size: 20px; }
  .step-body { font-size: 14px; }

  /* walkthrough: smaller play button, chapters as a fixed 3 x 2 grid */
  .watch-head { margin-bottom: 20px; }
  .play-icon { width: 60px; height: 60px; }
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter { gap: 6px; padding: 12px 12px 10px; }
  .chapter:nth-child(3n + 1) { border-left: 0; }
  .chapter:nth-child(n + 4) { border-top: 1px solid var(--color-divider); }
  .chapter-label { font-size: 16px; }

  /* features: number + text, body under the title */
  .feature { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 10px; padding: 18px 16px; }
  .feature p { grid-column: 2; }
  .feature h3 { font-size: 21px; }

  /* pricing + closing CTA */
  .pricing { gap: 20px; }
  .signup { padding-bottom: 56px; }
  .signup-card { padding: 28px 20px; }
  .signup-card h2 { font-size: 34px; }
  .signup-card .btn { align-self: stretch; }

  /* footer: one item per line */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 28px 36px; }
  .footer-by { margin-right: 0; }
}
