/* BamText site styles */
:root {
  --ink: #17161C;
  --ink-2: #23222B;
  --ink-line: #3A3846;
  --paper: #F6F3EE;
  --white: #FFFFFF;
  --line: #E4DFD6;
  --orange: #F7921E;
  --lime: #A8CF38;
  --sky: #15C2EA;
  --orange-text: #A84E00;
  --body: #3D3B47;
  --muted: #5E5B6B;
  --muted-dark: #B9B6C6;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }
h1, h2, h3, h4 { margin: 0; }
p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 56px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .login { text-decoration: none; font-weight: 500; padding: 12px 8px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 14px 26px; font-size: 17px; line-height: 1.2; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-align: center; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FFA33D; color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-text); }
.pill { display: inline-block; align-self: flex-start; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.display-xl { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 5.6vw, 78px); line-height: 1; letter-spacing: -2px; }
.display-l { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -1.5px; }
.display-m { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -1px; }
.lead { font-size: 20px; color: var(--body); max-width: 600px; }
.sub { font-size: 18px; color: var(--body); }
.mark-sky { box-shadow: inset 0 -0.3em 0 var(--sky); }
.mark-lime { box-shadow: inset 0 -0.3em 0 var(--lime); }
.mark-orange { box-shadow: inset 0 -0.3em 0 var(--orange); }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .sub, .section-dark .lead { color: var(--muted-dark); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split-reverse { flex-wrap: wrap-reverse; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .split { gap: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }

/* Demo cards */
.panel-dark { background: var(--ink); color: var(--white); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel-light { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.demo-tag { font-size: 13px; color: var(--muted-dark); border: 1px solid var(--ink-line); padding: 4px 10px; border-radius: 999px; }
.msg { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--ink-2); border-radius: 14px; }
.msg p { font-size: 16px; line-height: 1.45; }
.msg .meta { font-size: 13px; color: var(--muted-dark); }
.tag { align-self: flex-start; color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px; }
.tag-sky { background: var(--sky); }
.tag-lime { background: var(--lime); }
.tag-orange { background: var(--orange); }
.bubble { max-width: 360px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.bubble-in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 20px 20px 20px 4px; }
.bubble-in.on-white { background: var(--paper); border: none; }
.bubble-out { align-self: flex-end; background: var(--sky); border-radius: 20px 20px 4px 20px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; }
.sign-road { background: #1E6B45; color: var(--white); border: 4px solid var(--white); outline: 2px solid #1E6B45; border-radius: 12px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.sign-road strong, .sign-door strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; }
.sign-road span, .sign-door span.k { font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.sign-door { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.sign-door span.k { color: var(--muted); }
.sign-door small { font-size: 14px; color: var(--muted); }
.alert-card { background: var(--ink); color: var(--white); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.alert-card .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-dark); }

/* Leaderboard */
.board { display: flex; flex-direction: column; gap: 14px; }
.board-row { display: flex; flex-direction: column; gap: 6px; }
.board-row .label { display: flex; justify-content: space-between; font-size: 16px; }
.bar { height: 14px; background: #2A2933; border-radius: 999px; }
.bar span { display: block; height: 14px; border-radius: 999px; }

/* Lists */
.ticks { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 40px 24px; }
.stat { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1.1; }
.stat span { font-size: 16px; color: var(--muted-dark); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 240px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-paper { background: var(--paper); }
.card-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card-dark p { color: var(--muted-dark); }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; }
.card h3.small { font-family: var(--sans); font-weight: 700; font-size: 21px; }
.card p { font-size: 16px; color: var(--body); }
.card.card-dark p { color: var(--muted-dark); }
.card .num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--orange-text); line-height: 1; }
.card-dark .num { color: var(--lime); }
.card .fact { font-weight: 700; font-size: 18px; color: var(--ink); }
.card .more { margin-top: auto; font-weight: 700; padding-top: 4px; }

.story { flex: 1 1 340px; min-width: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.story-band { height: 120px; display: flex; align-items: flex-end; padding: 20px 24px; font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--ink); line-height: 1; }
.band-orange { background: var(--orange); }
.band-lime { background: var(--lime); }
.band-sky { background: var(--sky); }
.band-ink { background: var(--ink); color: var(--white); }
.story-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.story-body h3 { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; }
.story-body .fact { font-weight: 700; font-size: 18px; }
.story-body p { font-size: 16px; color: var(--body); }

/* Quote */
.quote-band { background: var(--sky); }
.quote-band figure { max-width: 1000px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 24px; }
.quote-band blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -0.5px; }
.quote-band figcaption { font-weight: 700; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; }
.page-hero .section-head { max-width: 820px; gap: 20px; }

/* Form */
.contact .split { align-items: flex-start; }
.form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > label { flex: 1 1 200px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #9A97A8; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { border: none; }
.contact a { color: var(--lime); }

/* Footer */
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 60px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--body); max-width: 320px; font-size: 16px; }
.footer-cols nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.footer-cols nav h2 { font-family: var(--sans); font-size: 14px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.footer-cols nav a { text-decoration: none; padding: 6px 0; }
.footer-base { padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero, .page-hero { padding: 48px 0; }
  .logo img { height: 46px; }
  .main-nav { order: 3; width: 100%; gap: 0 18px; font-size: 15px; }
  .split { gap: 32px; }
  .split > * { flex-basis: 100%; }
  .stat strong { font-size: 40px; }
  .panel-light, .form { padding: 22px; }
}
