/* ZestBay website, "Citrus" design. Hand-written, no build step.
   Colour comes from the name and the logo: a lime field for the hero, graphite
   for how it works, white between, orange for install. Structure is colour
   bands, big type and thin rules; cards only appear in the "how it works" band.
   Layout is wrapping flex rows and auto-fit grids, so it collapses to one
   column without breakpoints. */

@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  --lime: #c9e265;
  --orange: #f48d11;
  --ink: #1a1d23;
  --white: #ffffff;
  --mist: #eef0f2;
  --lime-tint: #f6fadf;
  --body: #3a414b;
  --on-lime: #262d0c;
  --muted: #646c78;
  --rule: #d4d8de;
  --rule-soft: #e3e6ea;
  --card: #1f232a;
  --card-border: #2f353f;
  --card-rule: #2a2f38;
  --on-dark: #e8eaee;
  --on-dark-body: #aab1bc;
  --pin: #63b3ff;
  --pin-off: #8b93a0;
  --wire-audio: #2a78d6;
  --wire-midi: #d55181;
  --wire-video: #f48d11;

  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd, pre, figure { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #5d7a00; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark a:focus-visible { outline-color: var(--lime); }
code, pre { font-family: var(--mono); }

.skip-link { position: absolute; left: 12px; top: -56px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

.display { font-family: var(--display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; }
.mono { font-family: var(--mono); font-size: 15px; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #000; color: var(--white); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 18px; }

/* ---------- 1. Lime field: nav and hero ---------- */

.field { background: var(--lime); }

.bar { max-width: 1248px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ink); }
.brand-mark img { width: 30px; height: auto; display: block; }
.brand-name { font-size: 21px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

.hero { max-width: 1248px; margin: 0 auto; padding: 64px 24px 0; display: flex; flex-direction: column; gap: 40px; }
.hero h1 { max-width: 1120px; font-size: clamp(40px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.hero-lead { flex: 1 1 460px; min-width: 0; max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--on-lime); }
.hero-actions { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-links a:not(.btn) { font-size: 17px; font-weight: 500; padding: 12px 0; }
.hero-cmd { font-family: var(--mono); font-size: 15px; color: var(--on-lime); }
.hero-shot { position: relative; z-index: 1; margin: 16px 0 -17%; padding: 0; }
.hero-shot img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 24px 60px rgba(26, 29, 35, 0.35); }

/* ---------- 2. What it does ---------- */

.what { background: var(--white); padding-top: 17%; }
.what .wrap { padding-top: 36px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 72px; }
.version-line { font-size: 15px; color: var(--muted); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 56px; }
.three > div { display: flex; flex-direction: column; gap: 14px; }
.three h2 { font-size: 30px; line-height: 1.05; letter-spacing: -0.015em; }
.three p { color: var(--body); }
.w-audio { border-bottom: 3px solid var(--wire-audio); }
.w-midi { border-bottom: 3px solid var(--wire-midi); }
.w-video { border-bottom: 3px solid var(--wire-video); }

/* ---------- 3. How it works (graphite) ---------- */

.dark { background: var(--ink); color: var(--on-dark); }
.how .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 56px; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; }
.band-head h2 { flex: 1 1 520px; min-width: 0; font-size: clamp(32px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.band-head p { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.how .band-head h2 { color: var(--white); }
.how .band-head p { color: var(--on-dark-body); }

.chain { display: flex; flex-wrap: wrap; gap: 28px; }
.node { position: relative; flex: 1 1 230px; min-width: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.node h3 { padding: 12px 18px; border-bottom: 1px solid var(--card-rule); font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--white); }
.node p { padding: 16px 18px 20px; font-size: 15px; color: var(--on-dark-body); }
.node .mono { font-size: 14px; }
.pin { position: absolute; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--pin); z-index: 2; }
.pin.r { right: -7px; }
.pin.l { left: -7px; }
.stub { position: absolute; left: -29px; top: 21px; width: 29px; height: 3px; background: var(--pin); }

.threads { display: flex; flex-wrap: wrap; gap: 28px 64px; padding-top: 40px; border-top: 1px solid var(--card-border); }
.threads > p { flex: 1 1 300px; min-width: 0; max-width: 380px; color: var(--on-dark); font-size: 19px; line-height: 1.45; }
.threads dl { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px 40px; font-size: 15px; }
.threads dt { font-weight: 600; color: var(--white); }
.threads dd { color: var(--on-dark-body); }

/* ---------- 4. Features ---------- */

.features { background: var(--white); }
.features .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 96px; }
.features > .wrap > h2 { max-width: 900px; font-size: clamp(32px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.feature.reverse { flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-text h3 { font-size: 34px; line-height: 1.05; letter-spacing: -0.015em; }
.feature-text p { color: var(--body); }
.feature-text ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--body); font-size: 16px; }
.feature-text .mono { font-size: 15px; }
.panel { flex: 1 1 460px; min-width: 0; border-radius: 28px; padding: clamp(20px, 4vw, 48px); }
.panel img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 16px 40px rgba(26, 29, 35, 0.3); }
.panel.lime { background: var(--lime); }
.panel.orange { background: var(--orange); }
.panel.orange img { max-width: 520px; margin: 0 auto; }

.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px 56px; }
.pairs > div { display: flex; flex-direction: column; gap: 28px; }
.well { background: var(--mist); border-radius: 28px; padding: 40px 24px; display: flex; justify-content: center; align-items: center; height: 480px; }
.well img { width: auto; max-width: 100%; height: auto; max-height: 400px; display: block; border-radius: 10px; box-shadow: 0 16px 40px rgba(26, 29, 35, 0.25); }
.well img.wide { width: 100%; }
.pair-text { display: flex; flex-direction: column; gap: 12px; }
.pair-text h3 { font-size: 28px; line-height: 1.05; letter-spacing: -0.015em; }
.pair-text p { color: var(--body); }

.box { display: flex; flex-direction: column; gap: 28px; }
.box h3 { font-size: 34px; line-height: 1.05; letter-spacing: -0.015em; }
.box dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 0 56px; font-size: 16px; }
.box dl > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.box dt { flex: 0 0 170px; font-weight: 600; }
.box dd { flex: 1 1 240px; min-width: 0; color: var(--body); }

/* ---------- 5. Compare ---------- */

.compare { background: var(--mist); }
.compare .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.compare .band-head p { color: var(--body); }
.table-box { overflow-x: auto; background: var(--white); border-radius: 20px; }
.table-box table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; text-align: left; }
.table-box th, .table-box td { padding: 14px 22px; border-top: 1px solid var(--rule-soft); vertical-align: top; }
.table-box thead th { border-top: 0; padding: 20px 22px; font-weight: 600; font-size: 16px; }
.table-box thead th:first-child { font-weight: 500; font-size: 15px; color: var(--muted); width: 26%; }
.table-box thead th.zb { font-family: var(--display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 18px; background: var(--lime); color: var(--ink); width: 22%; }
.table-box tbody th { font-weight: 500; }
.table-box td.zb { background: var(--lime-tint); }
.table-box td.txt { color: var(--body); }
.table-box td.no { color: var(--muted); }
.table-box tbody tr:last-child th, .table-box tbody tr:last-child td { padding-bottom: 20px; }
.yn { display: inline-flex; align-items: center; gap: 10px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.dot.off { box-sizing: border-box; background: transparent; border: 2px solid var(--pin-off); }
.footnote { margin-top: -24px; font-size: 14px; color: #4b535e; }
.footnote a { color: var(--ink); }
.closing { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 64px; padding-top: 48px; border-top: 1px solid var(--rule); }
.closing h3 { flex: 1 1 420px; min-width: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.closing p { flex: 1 1 420px; min-width: 0; max-width: 560px; color: var(--body); }

/* ---------- 6. Install (orange) ---------- */

.install { background: var(--orange); color: var(--ink); }
.install .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 56px; }
.install .band-head h2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.025em; }
.install .band-head p { color: var(--ink); }
.install .band-head .mono { font-size: 15px; }
.rows { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.row-label { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; }
.row-label h3 { font-size: 22px; line-height: 1.15; }
.row-label span { font-size: 15px; }
.row-label span .mono { font-size: 14px; }
.row-label a { color: var(--ink); }
.row pre { flex: 1 1 420px; min-width: 0; padding: 18px 22px; background: var(--ink); color: #f2f3f5; border-radius: 14px; font-size: 15px; line-height: 1.6; overflow-x: auto; }

/* ---------- 7. Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-body); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-brand img { width: 150px; height: auto; display: block; }
.foot-brand span { font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; }
.foot-links a { color: var(--on-dark); padding: 10px 0; }
.foot-links a:hover { color: var(--lime); }

@media (max-width: 720px) {
  .pin, .stub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
