/* Barform POS — marketing site. One palette, shared with the product:
   bg0 #15120D · bg1 #1E1A14 · bg2 #282218 · line #383024 ·
   brass #E0A93E · deep brass #A87716 · cream #F3EDDF · muted #B3A78F
   (+ --brass-hi #F2C05C, a tint of brass used only as a CTA gradient stop). */

@font-face { font-family: "Hanken"; src: url("/fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg0: #15120D;
  --bg1: #1E1A14;
  --bg2: #282218;
  --line: #383024;
  --brass: #E0A93E;
  --brass-deep: #A87716;
  --brass-hi: #F2C05C;
  --cream: #F3EDDF;
  --muted: #B3A78F;
  --faint: #8C8168;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding keeps anchor targets clear of the sticky nav */
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: "Hanken", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg0);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: var(--bg0); }

/* ── Brand lockup ─────────────────────────────────────── */
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.roundel {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brass); color: var(--bg0);
  font-weight: 800; font-size: 18px; line-height: 1;
}
.roundel-sm { width: 26px; height: 26px; font-size: 14px; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.wordmark em { font-style: normal; color: var(--brass); }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  background: color-mix(in srgb, var(--bg0) 88%, transparent);
  backdrop-filter: blur(10px);
}
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.lang:hover { color: var(--brass); border-color: var(--brass); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-deep) 145%);
  color: var(--bg0);
  font: 700 16px/1 "Hanken", sans-serif;
  padding: 15px 26px; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(224, 169, 62, .14);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(224, 169, 62, .22); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-big { padding: 18px 34px; font-size: 18px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 64px 24px 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4CAF6D; box-shadow: 0 0 10px #4CAF6D; }
h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero .sub { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }

/* Waitlist form */
.waitlist {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; max-width: 560px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.cta-title { font-weight: 700; margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fields input[type="email"], .fields input[type="text"] {
  font: 500 16px "Hanken", sans-serif;
  color: var(--cream); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; outline: none; width: 100%;
}
.fields input:focus { border-color: var(--brass-deep); box-shadow: 0 0 0 3px rgba(224, 169, 62, .15); }
.fields input::placeholder { color: var(--faint); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; pointer-events: none; }
.form-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.form-note a { border-bottom: 1px solid var(--line); }
.form-note a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.form-msg { margin-top: 10px; font-weight: 600; font-size: 14.5px; min-height: 1.2em; }
.form-msg.ok { color: #7BC98A; }
.form-msg.err { color: #E07A5F; }
.waitlist.sent .fields, .waitlist.sent .form-note, .waitlist.sent .cta-title { display: none; }

/* ── iPad mock ────────────────────────────────────────── */
.hero-visual { position: relative; display: grid; place-items: center; }
.deco-ring {
  position: absolute; inset: auto;
  width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 18px transparent, 0 0 120px rgba(224, 169, 62, .07);
}
.deco-ring::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  border: 1px solid rgba(224, 169, 62, .25);
}
.ipad {
  position: relative; z-index: 2;
  width: min(420px, 100%);
  background: #0C0A07; border-radius: 26px; padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: rotate(-2deg);
}
.ipad-screen { background: var(--bg0); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mock-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
}
.mock-time { color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr 1.1fr; }
.mock-floor {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 12px; border-right: 1px solid var(--line); align-content: start;
}
.tile {
  display: grid; place-items: center; height: 44px;
  border-radius: 9px; font-size: 11px; font-weight: 700;
}
.t-free { border: 1.5px solid var(--line); color: var(--faint); }
.t-open { border: 1.5px solid var(--brass); color: var(--brass); background: rgba(224, 169, 62, .10); }
.t-sent { border: 1.5px dashed #7BA8C9; color: #7BA8C9; }
.t-partial { border: 1.5px dashed var(--brass-deep); color: var(--brass); }
.mock-check { padding: 12px 14px; font-size: 12px; display: grid; align-content: start; gap: 7px; }
.mock-line { display: flex; justify-content: space-between; font-weight: 600; }
.mock-line b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-mod { color: var(--muted); font-weight: 500; padding-left: 8px; }
.mock-total {
  display: flex; justify-content: space-between; font-weight: 800;
  border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px;
}
.mock-charge {
  margin-top: 8px; text-align: center;
  background: var(--brass); color: var(--bg0);
  font-weight: 800; padding: 9px; border-radius: 9px;
}

/* ── Proof strip ──────────────────────────────────────── */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: var(--max); margin: 0 auto; padding: 26px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proof-item { display: grid; gap: 2px; }
.proof-n { font-size: 24px; font-weight: 800; color: var(--brass); }
.proof-label { font-size: 13.5px; color: var(--muted); }

/* ── Sections ─────────────────────────────────────────── */
section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 10px; }

.features { max-width: var(--max); margin: 0 auto; padding: 88px 24px 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card h3::before { content: "— "; color: var(--brass); }
.card p { color: var(--muted); font-size: 15px; }

.story { padding: 72px 24px; }
.story-inner {
  max-width: 780px; margin: 0 auto;
  background: linear-gradient(160deg, var(--bg1), var(--bg0));
  border: 1px solid var(--line); border-radius: 20px; padding: 44px 40px;
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass); border: 1px solid var(--brass-deep);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.story-inner p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

.faq { max-width: 780px; margin: 0 auto; padding: 24px 24px 72px; }
.faq h2 { margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::after { content: "+"; color: var(--brass); font-size: 20px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 62ch; }

.final {
  text-align: center; padding: 72px 24px 88px; border-top: 1px solid var(--line);
  background: radial-gradient(560px 280px at 50% 30%, rgba(224, 169, 62, .07), transparent 70%);
}
.final .section-sub { max-width: 52ch; margin: 10px auto 26px; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--max); margin: 0 auto;
  padding: 34px 24px 44px;
  display: grid; gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--faint); }
.footer-links a:hover { color: var(--brass); }
.footer-legal { font-size: 12.5px; color: var(--faint); }
.footer-legal a { border-bottom: 1px solid var(--line); }
.footer-legal a:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ── Plain pages (privacy) ────────────────────────────── */
.page { max-width: 780px; margin: 0 auto; padding: 48px 24px 88px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.page-updated { color: var(--faint); font-size: 13.5px; margin-top: 8px; }
.page-intro { color: var(--muted); margin-top: 22px; max-width: 65ch; }
.page h2 { font-size: 19px; font-weight: 700; margin-top: 30px; }
.page h2 + p { color: var(--muted); margin-top: 8px; max-width: 65ch; }

/* ── Reveal on scroll ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { order: -1; }
  .ipad { transform: none; width: min(380px, 100%); }
  .grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .story-inner { padding: 32px 22px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-floor { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
}
