/* ─────────────────────────────────────────────────────────────
   Proprietor's — Design tokens
   Modern premium · subtle heritage nods · brass + forest
   ───────────────────────────────────────────────────────────── */

:root {
  /* Forest (default) — derived from the logo */
  --c-ink:        #0F2A1C;   /* deep forest, primary text */
  --c-ink-2:      #1B3A28;
  --c-muted:      #5C6E5E;
  --c-line:       #DDD2B8;
  --c-bg:         #F4EDDC;   /* parchment cream — heritage */
  --c-bg-2:       #EDE3CB;
  --c-surface:    #FBF6E8;
  /* utility (data-heavy) sections — near white */
  --c-utility:        #FAFAF8;
  --c-utility-card:   #FFFFFF;
  --c-utility-line:   #E8E6DE;
  --c-utility-muted:  #5C6864;
  --c-brass:      #B8893D;
  --c-brass-2:    #8C6526;
  --c-brass-soft: #D9B978;
  --c-leaf:       #6F8F5B;
  --c-on-dark:    #F1EAD5;

  /* Type */
  --f-serif: "Cormorant Garamond", "Cormorant", "Spectral", Georgia, serif;
  --f-sans:  "DM Sans", "Geist", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  --f-mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing & radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --container: 1240px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(15,42,28,.04), 0 18px 40px -24px rgba(15,42,28,.18);
  --shadow-pop:  0 30px 80px -30px rgba(15,42,28,.35);
}

/* ─── Palettes ───────────────────────────────────────────── */
body[data-palette="midnight"] {
  --c-ink:        #0F1B2D;
  --c-ink-2:      #18283F;
  --c-muted:      #5E6B7E;
  --c-line:       #D8D2C4;
  --c-bg:         #F1EAD5;
  --c-bg-2:       #E8E0C8;
  --c-surface:    #F8F2DD;
  --c-utility:        #FAFAF8;
  --c-utility-card:   #FFFFFF;
  --c-utility-line:   #E5E5E0;
  --c-utility-muted:  #5C6470;
  --c-brass:      #C29959;
  --c-brass-2:    #8E6B33;
  --c-brass-soft: #DEC18C;
  --c-leaf:       #4F6A8C;
  --c-on-dark:    #F1EAD5;
}
body[data-palette="cellar"] {
  --c-ink:        #3A1A1A;
  --c-ink-2:      #4F2424;
  --c-muted:      #735150;
  --c-line:       #E0D2C0;
  --c-bg:         #F4EBD9;
  --c-bg-2:       #ECE0C8;
  --c-surface:    #FCF5E5;
  --c-utility:        #FAFAF8;
  --c-utility-card:   #FFFFFF;
  --c-utility-line:   #ECE5DA;
  --c-utility-muted:  #6E5048;
  --c-brass:      #A87437;
  --c-brass-2:    #7A4F1F;
  --c-brass-soft: #D3AC74;
  --c-leaf:       #8B6447;
  --c-on-dark:    #F1E7D2;
}

/* ─── Dark mode (works across palettes) ──────────────────── */
body[data-theme="dark"] {
  --c-ink:        #F1EAD5;
  --c-ink-2:      #E8DCC0;
  --c-muted:      #94A293;
  --c-line:       #2A3A2E;
  --c-bg:         #0A1F14;
  --c-bg-2:       #0F2A1C;
  --c-surface:    #122A1E;
  --c-utility:        #0F2418;
  --c-utility-card:   #142C1E;
  --c-utility-line:   #234034;
  --c-utility-muted:  #94A293;
  --c-brass:      #D9B978;
  --c-brass-2:    #B8893D;
  --c-brass-soft: #8C6526;
  --c-leaf:       #A8C088;
  --c-on-dark:    #F1EAD5;
}
body[data-theme="dark"][data-palette="midnight"] {
  --c-bg:    #07101F;
  --c-bg-2:  #0E1A2E;
  --c-surface: #122440;
  --c-line:  #25344A;
}
body[data-theme="dark"][data-palette="cellar"] {
  --c-bg:    #1A0B0B;
  --c-bg-2:  #261313;
  --c-surface: #2E1818;
  --c-line:  #3F2424;
}

/* ─── Reset & base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout primitives ──────────────────────────────────── */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.rule {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}
.brass-rule {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-brass-soft) 12%,
    var(--c-brass) 50%,
    var(--c-brass-soft) 88%,
    transparent 100%);
  border: 0;
}

/* ─── Type ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  font-weight: 500;
  opacity: .72;
}
body[data-theme="dark"] .eyebrow { color: var(--c-ink); opacity: .85; }
/* brass-toned eyebrow only used on the dark band — heritage moment */
.band-dark .eyebrow { color: var(--c-brass-soft); opacity: 1; }

.display {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; color: var(--c-brass-2); }
body[data-theme="dark"] .display em { color: var(--c-brass); }

h1.display { font-size: clamp(48px, 6.5vw, 92px); }
h2.display { font-size: clamp(36px, 4.8vw, 64px); }
h3.display { font-size: clamp(22px, 2vw, 28px); }

.lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--c-ink-2);
  max-width: 56ch;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover { background: var(--c-ink-2); }
body[data-theme="dark"] .btn-primary {
  background: var(--c-brass);
  color: #0A1F14;
}
body[data-theme="dark"] .btn-primary:hover { background: var(--c-brass-soft); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-brass); color: var(--c-brass-2); }
body[data-theme="dark"] .btn-ghost:hover { color: var(--c-brass); }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Section scaffolding ────────────────────────────────── */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 72px 0; }

/* alternate dark surface band */
.band-dark {
  background: var(--c-ink);
  color: var(--c-on-dark);
}
.band-dark .display { color: var(--c-on-dark); }
.band-dark .eyebrow { color: var(--c-brass-soft); }
.band-dark .lede { color: rgba(241,234,213,.78); }
.band-dark hr.rule { background: rgba(241,234,213,.12); }
.band-dark .btn-primary {
  background: var(--c-brass);
  color: var(--c-ink);
}
.band-dark .btn-primary:hover { background: var(--c-brass-soft); }
.band-dark .btn-ghost {
  border-color: rgba(241,234,213,.22);
  color: var(--c-on-dark);
}
.band-dark .btn-ghost:hover { border-color: var(--c-brass); color: var(--c-brass-soft); }

/* in dark mode, band-dark inverts to a parchment band for contrast */
body[data-theme="dark"] .band-dark {
  background: var(--c-bg-2);
  color: var(--c-ink);
}
body[data-theme="dark"] .band-dark .display { color: var(--c-ink); }
body[data-theme="dark"] .band-dark .lede { color: var(--c-ink-2); }

/* Utility band — near-white, for data-heavy sections (features, hardware, pricing) */
.band-utility {
  background: var(--c-utility);
  color: var(--c-ink);
}
.band-utility .eyebrow { color: var(--c-ink); opacity: .6; }
.band-utility hr.rule { background: var(--c-utility-line); }

/* ─── Ornament: corner brackets like the logo ────────────── */
.corner-frame {
  position: relative;
}
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--c-brass);
  pointer-events: none;
}
.corner-frame::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.corner-frame::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}

/* small dot accent like logo */
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--c-brass);
  display: inline-block;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 28px;
  display: grid; place-items: center;
}
.brand-name {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-name sup {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--c-brass-2);
  vertical-align: super;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
}
.nav-links a {
  color: var(--c-ink-2);
  position: relative;
}
.nav-links a:hover { color: var(--c-brass-2); }
body[data-theme="dark"] .nav-links a:hover { color: var(--c-brass); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .sign-in {
  font-size: 14px;
  color: var(--c-ink-2);
  white-space: nowrap;
}
.nav-cta .sign-in:hover { color: var(--c-brass-2); }
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint corner brackets across the page (echoing logo frame) */
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg,
    var(--c-brass) 0 24px,
    transparent 24px calc(100% - 24px),
    var(--c-brass) calc(100% - 24px) 100%) 1;
  opacity: .35;
  pointer-events: none;
}

/* hero: split layout */
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-split .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* hero: centered */
.hero-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.hero-centered .hero-copy { max-width: 880px; }
.hero-centered .lede { margin: 0 auto; }
.hero-centered .hero-ctas { justify-content: center; }
.hero-centered .hero-visual { width: 100%; max-width: 720px; margin-top: 24px; }

/* hero: full-bleed */
.hero-bleed { padding-top: 80px; }
.hero-bleed .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
.hero-bleed .hero-copy { max-width: 920px; }
.hero-bleed .hero-visual {
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .hairline {
  width: 36px; height: 1px;
  background: var(--c-brass);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--c-muted);
  align-items: center;
}
.hero-meta .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-brass);
  display: inline-block;
  margin-right: 8px;
}

/* ─── Trust strip ────────────────────────────────────────── */
.trust {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 28px 0;
  background: var(--c-bg-2);
}
.trust-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.trust-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
  max-width: 180px;
  line-height: 1.4;
}
.trust-logos {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-logos .logo-name {
  font-family: var(--f-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--c-ink-2);
  opacity: .7;
  letter-spacing: 0.01em;
}
@media (max-width: 760px) {
  .trust-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Feature grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-utility-line);
  border: 1px solid var(--c-utility-line);
  margin-top: 56px;
}
.feature {
  background: var(--c-utility-card);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background .2s ease;
}
.feature:hover { background: #FFFFFF; }
body[data-theme="dark"] .feature { background: var(--c-utility-card); }
body[data-theme="dark"] .feature:hover { background: var(--c-bg-2); }
.feature .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-ink);
  opacity: .55;
}
.feature h3 {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 4px 0 0;
  line-height: 1.15;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-utility-muted);
  max-width: 38ch;
}
.feature .icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--c-brass-2);
  margin-bottom: 8px;
}
body[data-theme="dark"] .feature .icon { color: var(--c-brass); }
@media (max-width: 880px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── Section header ─────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.section-head .lede { margin-top: 18px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── POS UI mock close-up ──────────────────────────────── */
.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; gap: 48px; }
}
.product .copy h2 { margin-bottom: 24px; }
.product-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 18px;
}
.product-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.product-list li strong {
  font-weight: 500;
  color: var(--c-ink);
}
.product-list li .check {
  color: var(--c-brass);
  margin-top: 4px;
}
.product-list li span {
  color: var(--c-muted);
}

/* ─── Hardware band ─────────────────────────────────────── */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 1100px) {
  .hardware-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hardware-grid { grid-template-columns: 1fr; }
}
.hw-card {
  background: var(--c-utility-card);
  border: 1px solid var(--c-utility-line);
  border-radius: var(--r-md);
  padding: 36px 28px 32px;
  display: grid;
  grid-template-rows: 180px auto 1fr auto;
  justify-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hw-card:hover {
  border-color: var(--c-ink);
  box-shadow: 0 18px 40px -28px rgba(15,42,28,.18);
}
body[data-theme="dark"] .band-dark .hw-card {
  background: var(--c-surface);
}
.band-dark .hw-card {
  background: rgba(241,234,213,.04);
  border-color: rgba(241,234,213,.1);
}
.hw-card .hw-art {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: end center;
  margin: 0;
}
.hw-card .hw-art svg {
  width: 180px;
  height: 180px;
  display: block;
}
.hw-card h3 {
  font-family: var(--f-serif);
  font-size: 22px;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 22ch;
  min-height: 2.4em;
  text-wrap: balance;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hw-card p {
  margin: 0;
  font-size: 14px;
  color: var(--c-utility-muted);
  line-height: 1.55;
  max-width: 32ch;
  align-self: start;
}
.band-dark .hw-card p { color: rgba(241,234,213,.62); }
.band-dark .hw-card h3 { color: var(--c-on-dark); }
.hw-card .price {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-ink);
  opacity: .55;
  margin-top: 4px;
}
.band-dark .hw-card .price { color: var(--c-brass); opacity: 1; }
.band-utility .hw-card .corner-frame::before,
.band-utility .hw-card .corner-frame::after { display: none; }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.tier {
  background: var(--c-utility-card);
  border: 1px solid var(--c-utility-line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tier:hover {
  border-color: var(--c-ink);
  box-shadow: 0 18px 40px -28px rgba(15,42,28,.2);
}
.tier.featured {
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-color: var(--c-ink);
}
body[data-theme="dark"] .tier.featured {
  background: var(--c-bg-2);
  color: var(--c-ink);
  border-color: var(--c-brass);
}
.tier.featured .tier-name,
.tier.featured h3 { color: var(--c-on-dark); }
body[data-theme="dark"] .tier.featured .tier-name,
body[data-theme="dark"] .tier.featured h3 { color: var(--c-ink); }
.tier.featured .tier-desc { color: rgba(241,234,213,.7); }
body[data-theme="dark"] .tier.featured .tier-desc { color: var(--c-muted); }
.tier.featured ul li { color: rgba(241,234,213,.85); }
body[data-theme="dark"] .tier.featured ul li { color: var(--c-ink-2); }
.tier .ribbon {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--c-brass);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 0 6px 6px;
  white-space: nowrap;
}
.tier .ribbon-alt {
  background: var(--c-ink);
  color: var(--c-on-dark);
}
.tier-name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  opacity: .6;
}
.tier.featured .tier-name { color: var(--c-brass-soft); }
.tier h3 {
  font-family: var(--f-serif);
  font-size: 32px;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tier-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
}
.tier-price .amt {
  font-family: var(--f-serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tier-price .amt-talk {
  font-family: var(--f-serif);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tier-price .unit {
  font-size: 12px;
  color: var(--c-utility-muted);
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.tier.featured .tier-price .unit {
  color: rgba(241,234,213,.6);
}
body[data-theme="dark"] .tier.featured .tier-price .unit { color: var(--c-utility-muted); }

/* tier-title: used in lieu of price (e.g. "What's included.") */
.tier-title {
  margin: 6px 0 0;
}
.tier-title .amt-title {
  font-family: var(--f-serif);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: block;
}
.tier.featured .tier-price .unit { color: rgba(241,234,213,.6); }
body[data-theme="dark"] .tier.featured .tier-price .unit { color: var(--c-muted); }
.tier-desc {
  font-size: 14px;
  color: var(--c-utility-muted);
  line-height: 1.5;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.tier ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--c-ink-2);
}
.tier ul li .check { color: var(--c-brass); }
.tier.featured ul li .check { color: var(--c-brass-soft); }
body[data-theme="dark"] .tier.featured ul li .check { color: var(--c-brass-2); }
.tier .btn { justify-content: center; width: 100%; margin-top: auto; }
.tier.featured .btn-primary {
  background: var(--c-brass);
  color: var(--c-ink);
}
.tier.featured .btn-primary:hover { background: var(--c-brass-soft); }
.tier.featured .btn-ghost {
  border-color: rgba(241,234,213,.25);
  color: var(--c-on-dark);
}

/* ─── Final CTA ──────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 140px 0;
}
.final-cta .lede { margin: 24px auto 36px; }
.final-cta .seal-key {
  margin: 0 auto 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.final-cta .seal-key::before,
.final-cta .seal-key::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-brass));
}
.final-cta .seal-key::after {
  background: linear-gradient(90deg, var(--c-brass), transparent);
}

/* ─── Hero terminal (desk stand + tablet) ───────────────── */
.terminal {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.terminal-frame {
  background: var(--c-ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    var(--shadow-pop),
    inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.terminal-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(217,185,120,.18);
  border-radius: 12px;
  pointer-events: none;
}
.terminal-screen {
  background: #0F141A;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.terminal-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
body[data-theme="dark"] .terminal-screen { background: var(--c-bg-2); }
.terminal-stand {
  width: 14px;
  height: 42px;
  background: var(--c-brass);
  margin: 0 auto;
  box-shadow: inset 0 -10px 14px rgba(0,0,0,.22);
}
.terminal-base {
  width: 160px;
  height: 14px;
  background: linear-gradient(180deg, var(--c-brass-soft), var(--c-brass-2));
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  box-shadow: 0 14px 28px -10px rgba(15,42,28,.4);
}

/* ─── POS UI mock ─────────────────────────────────────────── */
.pos-ui {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  height: 100%;
  font-size: 12px;
  color: var(--c-ink);
  background: var(--c-bg);
}
body[data-theme="dark"] .pos-ui { background: var(--c-bg-2); color: var(--c-ink); }
.pos-ui.is-compact { font-size: 10px; grid-template-columns: 76px 1fr 130px; }

.pos-side {
  background: var(--c-bg-2);
  padding: 14px 12px;
  border-right: 1px solid var(--c-line);
}
body[data-theme="dark"] .pos-side { background: var(--c-surface); }
.pos-side-title {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brass-2);
  margin-bottom: 10px;
}
.is-compact .pos-side-title { font-size: 7px; }
.pos-sections {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.pos-sections li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--c-ink-2);
  font-size: 11px;
}
.is-compact .pos-sections li { font-size: 9px; padding: 4px 6px; gap: 5px; }
.pos-sections li.is-active {
  background: var(--c-ink);
  color: var(--c-on-dark);
}
body[data-theme="dark"] .pos-sections li.is-active {
  background: var(--c-brass);
  color: var(--c-bg);
}
.pos-sections li .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-brass);
}
.pos-sections li.is-active .dot { background: var(--c-brass-soft); }
.tab-count {
  font-family: var(--f-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
}
.is-compact .tab-count { font-size: 22px; }
body[data-theme="dark"] .tab-count { color: var(--c-ink); }

.pos-main {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pos-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 8px;
}
.pos-tabs .tab {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 4px 8px;
  border-radius: 3px;
}
.is-compact .pos-tabs .tab { font-size: 7.5px; padding: 3px 6px; }
.pos-tabs .tab.is-active {
  color: var(--c-ink);
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-brass);
}
body[data-theme="dark"] .pos-tabs .tab.is-active { background: var(--c-surface); color: var(--c-ink); }

.pos-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}
.is-compact .pos-items { grid-template-columns: repeat(2, 1fr); gap: 4px; }
.pos-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  transition: border-color .15s ease, transform .15s ease;
}
.is-compact .pos-item { padding: 6px 6px 5px; min-height: 38px; gap: 4px; }
.pos-item:hover { border-color: var(--c-brass); transform: translateY(-1px); }
.pos-item-name {
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.is-compact .pos-item-name { font-size: 10.5px; }
.pos-item-price {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--c-brass-2);
}
.is-compact .pos-item-price { font-size: 8px; }

.pos-check {
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--c-line);
}
body[data-theme="dark"] .pos-check { background: var(--c-bg); color: var(--c-ink); }
.is-compact .pos-check { padding: 10px 8px; gap: 6px; }
.check-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(241,234,213,.12);
}
body[data-theme="dark"] .check-head { border-color: var(--c-line); }
.check-name {
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.is-compact .check-name { font-size: 10px; }
.check-sub {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241,234,213,.5);
  margin-top: 2px;
}
body[data-theme="dark"] .check-sub { color: var(--c-muted); }
.is-compact .check-sub { font-size: 6.5px; }
.check-id {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-brass-soft);
}
body[data-theme="dark"] .check-id { color: var(--c-brass-2); }
.is-compact .check-id { font-size: 7.5px; }

.check-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
}
.check-list li { font-size: 11px; }
.is-compact .check-list li { font-size: 9px; }
.cl-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 6px;
  align-items: baseline;
}
.cl-qty {
  font-family: var(--f-mono);
  color: var(--c-brass-soft);
}
body[data-theme="dark"] .cl-qty { color: var(--c-brass-2); }
.cl-price {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(241,234,213,.8);
}
body[data-theme="dark"] .cl-price { color: var(--c-ink-2); }
.is-compact .cl-price { font-size: 8px; }
.cl-mod {
  margin-left: 24px;
  font-size: 9.5px;
  color: rgba(241,234,213,.5);
  font-style: italic;
}
body[data-theme="dark"] .cl-mod { color: var(--c-muted); }
.is-compact .cl-mod { font-size: 7.5px; margin-left: 18px; }

.check-total {
  border-top: 1px solid rgba(241,234,213,.12);
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body[data-theme="dark"] .check-total { border-color: var(--c-line); }
.is-compact .check-total { font-size: 8px; }
.ct-row { display: flex; justify-content: space-between; }
.ct-total {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-brass-soft);
  margin-top: 4px;
}
body[data-theme="dark"] .ct-total { color: var(--c-brass-2); }
.is-compact .ct-total { font-size: 12px; }

.check-send {
  background: var(--c-brass);
  color: var(--c-ink);
  border: 0;
  padding: 10px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.is-compact .check-send { padding: 6px; font-size: 7.5px; }
.check-send:hover { background: var(--c-brass-soft); }

/* full-size POS mock container in Product section */
.product-mock {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(241,234,213,.12);
  box-shadow: var(--shadow-pop);
  background: #0F141A;
  aspect-ratio: 4 / 3;
}
.product-mock-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
body[data-theme="dark"] .product-mock { border-color: rgba(241,234,213,.1); }
.product-mock .pos-ui { height: 100%; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--c-line);
  padding: 72px 0 48px;
  background: var(--c-bg-2);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ─── Comprehensive mobile pass ──────────────────────────────
   Tightens spacing, sizes type, collapses chrome.
   ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* Container — tighter gutter on phones */
  .wrap { padding: 0 20px; }

  /* Section padding — was 120/72; halve it */
  .section-pad    { padding: 72px 0; }
  .section-pad-sm { padding: 48px 0; }

  /* Display type — clamp() floors take over but enforce a sane top */
  h1.display { font-size: clamp(38px, 10vw, 56px); }
  h2.display { font-size: clamp(30px, 7.5vw, 44px); }
  h3.display { font-size: clamp(20px, 5vw, 24px); }
  .lede { font-size: 17px; }

  /* Buttons — meet 44px tap-target minimum */
  .btn { min-height: 48px; }
  .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 14px; }

  /* Nav — hide sign-in, keep brand + primary CTA */
  .nav-inner { height: 60px; }
  .brand-name { font-size: 18px; }
  .brand-name sup { display: none; }
  .nav-cta .sign-in { display: none; }
  .nav-cta .btn { padding: 12px 18px; font-size: 13px; min-height: 44px; }

  /* Hero — drop the corner-bracket frame, reflow */
  .hero { padding: 56px 0 72px; }
  .hero::before { display: none; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-eyebrow .hairline { width: 20px; }
  .hero-eyebrow .eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .hero-ctas { margin-top: 28px; gap: 10px; }
  .hero-ctas .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
  }

  /* Terminal — pull tighter to viewport, slightly smaller stand */
  .terminal { max-width: 380px; }
  .terminal-frame { padding: 10px; border-radius: 14px; }
  .terminal-stand { height: 32px; }

  /* Section heads — eyebrow + tighter spacing */
  .section-head { gap: 20px; }
  .features-grid,
  .hardware-grid,
  .pricing-grid { margin-top: 36px; }

  /* Feature cards — less padding */
  .feature { padding: 32px 24px; min-height: 0; gap: 12px; }
  .feature h3 { font-size: 22px; }

  /* Hardware cards — collapse the fixed-row grid back to flex */
  .hw-card {
    grid-template-rows: auto;
    min-height: 0;
    padding: 32px 24px 28px;
    gap: 16px;
  }
  .hw-card .hw-art { height: 160px; }
  .hw-card .hw-art svg { width: 160px; height: 160px; }
  .hw-card h3 { font-size: 20px; min-height: 0; }

  /* Product close-up — tighten gap */
  .product { gap: 36px; }
  .product-mock { aspect-ratio: 16 / 11; }

  /* Pricing tiers */
  .tier { padding: 28px 24px; gap: 14px; }
  .tier h3 { font-size: 26px; }
  .tier-price .amt { font-size: 44px; }
  .tier-title .amt-title { font-size: 34px; }
  .tier .ribbon { right: 16px; font-size: 9px; padding: 5px 10px; }

  /* Final CTA — less air */
  .final-cta { padding: 80px 0; }
  .final-cta .seal-key::before,
  .final-cta .seal-key::after { width: 40px; }
  .final-cta .hero-ctas { flex-direction: column; align-items: stretch; }
  .final-cta .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 56px 0 32px; }
  .foot { gap: 32px; }
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    align-items: flex-start;
  }
}

/* Very small phones (≤ 420px) — single-column footer, tighter still */
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .foot { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
.foot h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  opacity: .55;
  margin: 0 0 18px;
  font-weight: 500;
}
.foot ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.foot ul a { color: var(--c-ink-2); }
.foot ul a:hover { color: var(--c-brass-2); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}
