/* ============================================================
   Bankzity — editorial site
   Design system: Sakura Chroma (MIT, zarazhangrui/beautiful-html-templates)
   adapted to Bankzity brand: cream paper, warm-brown ink,
   blue / green / orange primaries with yellow support.
   ============================================================ */

:root {
  --paper: #F1E6CB;
  --paper-dk: #E5D6B0;
  --ink: #3A2516;
  --blue: #3F8BC4;
  --green: #3D9F47;
  --orange: #F09131;
  --yellow: #F0BC2A;
  /* darker siblings used only where cream text needs AA contrast */
  --blue-deep: #2E6E9E;
  --green-deep: #2F7D38;

  --disp: 'Big Shoulders Display', sans-serif;
  --body: 'Albert Sans', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --frame-x: clamp(20px, 5vw, 88px);
  --rule: 1.5px solid var(--ink);
  --hairline: 1px solid rgba(58, 37, 22, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper-grain halftone — the print register */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(58,37,22,0.55) 1px, transparent 1.6px);
  background-size: 4px 4px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 2147483647;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- type utilities ---------- */

.micro {
  font-family: var(--body);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
}
.micro-xl { letter-spacing: 0.3em; }

.mono {
  font-family: var(--mono);
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

em { font-style: normal; }

/* ---------- header ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vh, 22px) var(--frame-x);
  border-bottom: var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}
.topbar-logo img { height: clamp(34px, 4vw, 46px); width: auto; }
.topbar-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  align-items: center;
}
.topbar-nav a {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 2px;
}
.topbar-nav a:hover { color: var(--blue-deep); }
.topbar-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
}
.topbar-cta:hover { background: var(--blue-deep); color: var(--paper) !important; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vh, 110px) var(--frame-x) clamp(40px, 6vh, 80px);
  border-bottom: var(--rule);
  overflow: hidden;
}

.ribbons {
  position: absolute;
  top: -12%;
  right: -46%;
  width: 90%;
  height: 120%;
  transform: rotate(22deg);
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.ribbons span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 7%;
}
.ribbons span:nth-child(1) { top: 6%;  background: var(--blue); }
.ribbons span:nth-child(2) { top: 15%; background: var(--green); }
.ribbons span:nth-child(3) { top: 24%; background: var(--orange); }
.ribbons span:nth-child(4) { top: 33%; background: var(--yellow); }

.hero-inner { position: relative; z-index: 1; max-width: 1280px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.hero-eyebrow .dash {
  display: inline-block;
  width: 44px;
  height: 3px;
  background: var(--ink);
}

.hero h1 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  max-width: 11ch;
}
.hero h1 .em-blue { color: var(--blue); }
.hero h1 .em-green { color: var(--green); }

.hero-sub {
  margin-top: clamp(24px, 3.4vh, 44px);
  max-width: 54ch;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions {
  margin-top: clamp(28px, 4vh, 48px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(13px, 0.95vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: var(--rule);
  display: inline-block;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(58,37,22,0.28);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: var(--paper); }
.btn-ghost:hover { background: var(--paper-dk); }

.hero-specs {
  margin-top: clamp(36px, 5vh, 60px);
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  flex-wrap: wrap;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec-box {
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.spec-box.checked {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--disp);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

/* starburst seal */
.seal {
  position: absolute;
  right: var(--frame-x);
  bottom: clamp(24px, 4vh, 56px);
  width: clamp(72px, 7vw, 116px);
  aspect-ratio: 1 / 1;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(50% 0%, 60% 8%, 73% 4%, 76% 17%, 89% 18%, 87% 31%, 100% 35%, 92% 47%, 100% 60%, 87% 64%, 90% 77%, 76% 78%, 75% 91%, 62% 88%, 53% 100%, 42% 90%, 30% 96%, 25% 84%, 12% 86%, 13% 73%, 0% 70%, 7% 58%, 0% 47%, 11% 39%, 4% 27%, 17% 25%, 13% 12%, 27% 14%, 25% 1%, 38% 7%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 34px);
  letter-spacing: -0.01em;
  z-index: 1;
}

/* ---------- banner strip ---------- */

.banner-strip {
  padding: clamp(28px, 4vh, 56px) var(--frame-x);
  border-bottom: var(--rule);
  background: var(--paper-dk);
}
.banner-strip figure {
  max-width: 1280px;
  margin: 0 auto;
}
.banner-strip img {
  width: 100%;
  border: var(--rule);
  box-shadow: 8px 8px 0 var(--ink);
}
.banner-strip figcaption {
  margin-top: 14px;
  opacity: 0.75;
}

/* ---------- sections ---------- */

section.block {
  padding: clamp(52px, 8vh, 110px) var(--frame-x);
  border-bottom: var(--rule);
  position: relative;
}
.block-inner { max-width: 1280px; margin: 0 auto; }

.section-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(12px, 1.6vh, 22px);
  border-bottom: var(--rule);
  margin-bottom: clamp(28px, 4vh, 52px);
  flex-wrap: wrap;
}
.section-topbar h2 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(42px, 5.4vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.018em;
  text-transform: uppercase;
}
.section-topbar h2 em { color: var(--blue); }
.section-topbar .micro { opacity: 0.85; text-align: right; }

.lede {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 500;
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vh, 48px);
}

/* ---------- product / what it does ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 3.4vw, 64px);
  align-items: start;
}

.pillar-list { display: grid; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: clamp(52px, 5vw, 76px) 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  padding: clamp(18px, 2.2vh, 28px) 0;
  border-bottom: var(--hairline);
}
.pillar:last-child { border-bottom: none; }
.pillar-num {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.pillar:nth-child(1) .pillar-num { color: var(--blue); }
.pillar:nth-child(2) .pillar-num { color: var(--green); }
.pillar:nth-child(3) .pillar-num { color: var(--orange); }
.pillar h3 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pillar p { max-width: 52ch; }

.symbol-panel {
  border: var(--rule);
  background: var(--paper);
  padding: clamp(20px, 2.6vw, 40px);
  text-align: center;
  position: relative;
}
.symbol-panel img {
  width: min(320px, 70%);
  margin: 0 auto;
}
.symbol-panel .mono { margin-top: 18px; opacity: 0.7; }
.stamp {
  position: absolute;
  top: -14px;
  right: -10px;
  transform: rotate(-3deg);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 16px;
}

/* ---------- workflow cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
}
.wcard {
  border: var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.wcard-strip {
  height: clamp(16px, 2vh, 26px);
  border-bottom: var(--rule);
}
.strip-blue { background: var(--blue); }
.strip-green { background: var(--green); }
.strip-orange { background: var(--orange); }
.strip-yellow { background: var(--yellow); }
.strip-ink { background: var(--ink); }
.wcard-body {
  padding: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.wcard-step { opacity: 0.6; }
.wcard h3 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wcard p { font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.45; }
.wcard-spec {
  margin-top: auto;
  border-top: 1px dashed var(--ink);
  padding-top: 10px;
}

/* ---------- demo ---------- */

.demo-note {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 16px;
  transform: rotate(-2deg);
  margin-bottom: clamp(20px, 3vh, 36px);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 2vw, 32px);
  align-items: stretch;
}

.panel {
  border: var(--rule);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: var(--rule);
  background: var(--paper-dk);
}
.panel-body { padding: clamp(16px, 1.8vw, 26px); display: grid; gap: 16px; }

.msg { max-width: 92%; }
.msg-label { opacity: 0.6; margin-bottom: 5px; }
.msg-bubble {
  border: var(--rule);
  padding: 12px 16px;
  font-size: clamp(13.5px, 0.95vw, 15px);
  line-height: 1.5;
}
.msg-user { justify-self: end; text-align: left; }
.msg-user .msg-bubble { background: var(--paper-dk); }
.msg-ai .msg-bubble { background: var(--paper); }
.msg-bubble strong { font-weight: 700; }

.flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  color: var(--paper);
  background: var(--blue-deep);
  margin-right: 6px;
}
.flag-warn { background: var(--ink); }

.task-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: var(--hairline);
}
.task-row:last-child { border-bottom: none; }
.task-box {
  width: 17px; height: 17px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.task-box.done {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--disp);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}
.task-title { font-weight: 600; font-size: clamp(13.5px, 0.95vw, 15px); }
.task-title small {
  display: block;
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.86em;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  color: var(--paper);
  white-space: nowrap;
}
.chip-blue { background: var(--blue-deep); }
.chip-green { background: var(--green-deep); }
.chip-ink { background: var(--ink); }
.chip-orange { background: var(--orange); color: var(--ink); }
.chip-yellow { background: var(--yellow); color: var(--ink); }

.demo-caption {
  margin-top: 18px;
  opacity: 0.75;
  max-width: 70ch;
}

/* ---------- ledger (current work) ---------- */

.ledger { width: 100%; }
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 110px 1.3fr 1.7fr auto;
  gap: clamp(12px, 1.6vw, 28px);
  align-items: center;
  padding: clamp(12px, 1.6vh, 20px) 0;
}
.ledger-head {
  border-bottom: var(--rule);
  padding-top: 0;
}
.ledger-row { border-bottom: var(--hairline); }
.ledger-row .mono { opacity: 0.8; }
.ledger-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 30px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.05;
}
.ledger-desc { font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.5; max-width: 56ch; }
.ledger-foot {
  margin-top: 16px;
  opacity: 0.7;
  max-width: 72ch;
}

/* ---------- platforms ---------- */

.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
}
.plat-card {
  border: var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.plat-card .wcard-body { gap: 8px; }
.plat-card h3 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(24px, 2.2vw, 36px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.plat-card p { font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.45; }
.plat-tag { margin-top: auto; padding-top: 12px; }

/* ---------- vision ---------- */

.vision {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}
.vision .section-topbar { border-bottom-color: var(--paper); }
.vision .section-topbar h2 { color: var(--paper); }
.vision .section-topbar h2 em { color: var(--orange); }
.vision .section-topbar .micro { color: var(--paper); }
.vision .lede { color: var(--paper); }
.vision-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
}
.vpoint {
  border-top: 3px solid var(--paper);
  padding-top: 16px;
}
.vpoint:nth-child(1) { border-top-color: var(--blue); }
.vpoint:nth-child(2) { border-top-color: var(--green); }
.vpoint:nth-child(3) { border-top-color: var(--orange); }
.vpoint h3 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.vpoint p { font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.5; opacity: 0.92; }

/* ---------- contact ---------- */

.contact { text-align: left; }
.contact-box {
  border: var(--rule);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(28px, 3.6vw, 56px);
  max-width: 880px;
  position: relative;
}
.contact-box h2 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-box h2 em { color: var(--green); }
.contact-box p { max-width: 56ch; margin-bottom: 24px; }

.petals {
  position: absolute;
  top: -34px;
  right: 26px;
  width: 120px;
  height: 80px;
  pointer-events: none;
}
.petals i {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: block;
}
.petals i:nth-child(1) { width: 44px; left: 0;    top: 10px; background: var(--blue); }
.petals i:nth-child(2) { width: 36px; left: 30px; top: 30px; background: var(--green); }
.petals i:nth-child(3) { width: 28px; left: 62px; top: 6px;  background: var(--orange); }
.petals i:nth-child(4) { width: 22px; left: 84px; top: 36px; background: var(--yellow); }

/* ---------- footer ---------- */

footer {
  padding: clamp(28px, 4vh, 48px) var(--frame-x);
  border-top: var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer img { height: 34px; width: auto; }
footer .mono { opacity: 0.7; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .two-col, .demo-grid { grid-template-columns: 1fr; }
  .plat-grid, .vision-points { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger-head { display: none; }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .seal { display: none; }
  .ribbons { opacity: 0.55; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(52px, 15vw, 90px); }
  .petals { display: none; }
}
