/* ==========================================================================
   360nav POS - Modern Responsive Stylesheet
   UK Restaurant EPOS with Deterministic AI Operations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted Typography (Fraunces, Archivo, Courier Prime)
   -------------------------------------------------------------------------- */
/* Fraunces (Display) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/f1.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/f2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/f3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Archivo (Sans / Body / Labels) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/f6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/f6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/f6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Courier Prime (Mono / Numerals / Tabular Data) */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/f8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/f10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Root Configuration
   -------------------------------------------------------------------------- */
:root {
  /* Core Hospitality Palette */
  --paper: #F5F8FC;
  --paper-card: #FFFFFF;
  --paper-warm: #FBF9F5;
  --paper-dark: #0D1726;

  /* Ink & Typography */
  --ink: #12294B;
  --ink-2: #3E4D66;
  --ink-3: #627188; /* was #6F7F99: 3.9–4.1:1 on the paper tones, now ≥4.6 */
  --ink-muted: #8E9BAE;

  /* Architectural Rules & Borders */
  --rule: #E2E8F0;
  --rule-light: #EEF2F6;
  --rule-strong: #CBD5E1;

  /* Brand Accents */
  --stamp: #1E6FBF;
  --stamp-hover: #165696;
  --stamp-light: rgba(30, 111, 191, 0.08);
  --stamp-border: rgba(30, 111, 191, 0.25);

  --coral: #D94635;
  --coral-light: rgba(217, 70, 53, 0.1);

  /* Operational Status Tokens */
  --ok: #1E9E68;
  --ok-light: rgba(30, 158, 104, 0.12);
  --wait: #D9822B;
  --wait-light: rgba(217, 130, 43, 0.12);
  --late: #D9384E;
  --late-light: rgba(217, 56, 78, 0.12);
  /* The status colours above are swatches: dots, bars, borders. As text on
     paper or on their own tinted pills they fall under 4.5:1, so text uses
     these darker partners, each checked against the backgrounds it sits on. */
  --ok-text: #16764D;
  --wait-text: #93581D;
  --coral-text: #D04332;

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px rgba(18, 41, 75, 0.04);
  --shadow-sm: 0 2px 6px rgba(18, 41, 75, 0.06), 0 1px 2px rgba(18, 41, 75, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(18, 41, 75, 0.08), 0 4px 12px -2px rgba(18, 41, 75, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(18, 41, 75, 0.12), 0 8px 18px -4px rgba(18, 41, 75, 0.06);
  --shadow-ticket: 0 20px 48px -10px rgba(18, 41, 75, 0.22), 0 2px 8px rgba(18, 41, 75, 0.08);

  /* Motion & Spring Timings */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 160ms var(--ease-smooth);
  --transition-normal: 260ms var(--ease-smooth);
  --transition-slow: 400ms var(--ease-smooth);

  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --max-width: 1240px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--stamp);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--stamp-hover);
}

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

/* <picture> only chooses a file. It takes no box of its own, so every rule
   written for the <img> inside it (absolute fills, object-fit) still applies. */
picture {
  display: contents;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Tabular Numerals Helper */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: 'Courier Prime', monospace;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Shell */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
}

.section-index {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--stamp);
  letter-spacing: 0.06em;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'opsz' 120, 'wght' 700, 'WONK' 1;
}

.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 68ch;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (Desktop & Mobile Drawer)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: box-shadow var(--transition-normal), background var(--transition-normal);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(18, 41, 75, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 4px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--stamp);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--stamp);
}

.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-stamp {
  background: var(--stamp);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(30, 111, 191, 0.25);
}

.btn-stamp:hover {
  background: var(--stamp-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 111, 191, 0.35);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.btn-outline:hover {
  background: #FFFFFF;
  border-color: var(--ink);
  color: var(--ink);
}

/* Scroll Progress Line */
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--stamp);
  width: 0%;
  transition: width 80ms linear;
  z-index: 1001;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--stamp-light);
  border: 1px solid var(--stamp-border);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 41, 75, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 999;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  background: #FFFFFF;
  padding: 28px 24px 36px;
  border-bottom: 2px solid var(--stamp);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-10px);
  transition: transform var(--transition-normal);
}

.mobile-drawer.is-open .mobile-drawer-content {
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  color: var(--stamp);
  padding-left: 6px;
}

/* --------------------------------------------------------------------------
   5. Hero Section & Interactive Receipt Docket
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 130px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #F8FAFD 0%, #F5F8FC 100%);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'SOFT' 0, 'WONK' 1;
}

.hero-accent-rule {
  width: 72px;
  height: 3px;
  background: var(--stamp);
  margin-bottom: 24px;
  border-radius: 2px;
}

.hero-desc {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-link-subtle {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 4px;
  transition: color var(--transition-fast);
}

.hero-link-subtle:hover {
  color: var(--stamp);
}

/* Hero Docket Stage */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-stage-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule);
}

.hero-stage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.85);
  transition: transform 8s ease-out;
}

.hero-stage:hover .hero-stage-photo {
  transform: scale(1.05);
}

.hero-stage-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.1) 0%, rgba(245, 248, 252, 0.94) 100%);
}

/* The Interactive Printed Receipt */
.hero-receipt {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-ticket);
  transform: rotate(1.2deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  /* Zigzag thermal receipt torn edge */
  clip-path: polygon(
    0% 2.5%, 4% 0%, 8% 2.5%, 12% 0%, 16% 2.5%, 20% 0%, 24% 2.5%, 28% 0%, 32% 2.5%, 36% 0%,
    40% 2.5%, 44% 0%, 48% 2.5%, 52% 0%, 56% 2.5%, 60% 0%, 64% 2.5%, 68% 0%, 72% 2.5%, 76% 0%,
    80% 2.5%, 84% 0%, 88% 2.5%, 92% 0%, 96% 2.5%, 100% 0%,
    100% 97.5%, 96% 100%, 92% 97.5%, 88% 100%, 84% 97.5%, 80% 100%, 76% 97.5%, 72% 100%, 68% 97.5%, 64% 100%,
    60% 97.5%, 56% 100%, 52% 97.5%, 48% 100%, 44% 97.5%, 40% 100%, 36% 97.5%, 32% 100%, 28% 97.5%, 24% 100%,
    20% 97.5%, 16% 100%, 12% 97.5%, 8% 100%, 4% 97.5%, 0% 100%
  );
}

.hero-receipt:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 28px 60px -12px rgba(18, 41, 75, 0.28);
}

.receipt-body {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink);
}

.rline {
  display: flex;
  align-items: baseline;
  animation: printIn 280ms var(--ease-out) both;
  /* --i is written on each line in the markup, so the receipt prints line by
     line on first paint without any script touching layout. */
  animation-delay: calc(var(--i, 0) * 45ms);
}

.rline-center {
  text-align: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.rline-meta {
  text-align: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 12px;
}

.rline-dash {
  border-top: 1px dashed var(--rule-strong);
  margin: 10px 0;
}

.rline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  transition: background var(--transition-fast);
}

.rline-item:hover {
  background: rgba(30, 111, 191, 0.06);
}

.rline-leader {
  flex: 1;
  border-bottom: 1px dotted var(--ink-muted);
  margin: 0 6px 4px;
}

.rline-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 8px 0;
  margin: 8px 0 6px;
}

.rline-vat {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 11px;
}

.receipt-interactive-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.receipt-btn {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.receipt-btn:hover {
  background: var(--stamp);
  color: #FFFFFF;
  border-color: var(--stamp);
}

/* --------------------------------------------------------------------------
   6. Built-in Strip (5 Pillars with Hover Micro-Interactions)
   -------------------------------------------------------------------------- */
.pillars-section {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #FFFFFF;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.pillar-item {
  padding: 16px 24px;
  border-right: 1px solid var(--rule);
  transition: background var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.pillar-item:first-child {
  padding-left: 0;
}

.pillar-item:last-child {
  border-right: none;
  padding-right: 0;
}

.pillar-item:hover {
  background: var(--stamp-light);
}

.pillar-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   7. Industry Tabs ("Who it's for")
   -------------------------------------------------------------------------- */
.industry-tablist {
  display: flex;
  gap: 12px;
  position: relative;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.industry-tablist::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 12px 18px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--stamp);
}

.tab-btn.is-active {
  color: var(--stamp);
  font-weight: 700;
}

.tab-ind {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--stamp);
  width: var(--tw, 120px);
  transform: translateX(var(--tx, 0px));
  transition: transform var(--transition-normal), width var(--transition-normal);
}

.tab-pane {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  animation: tabFadeIn 280ms var(--ease-out) both;
}

.tab-pane[hidden] {
  display: none;
}

.tab-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tab-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 6s ease;
}

.tab-pane:hover .tab-media img {
  transform: scale(1.03);
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tab-venue-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.tab-blurb {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.tab-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.tab-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.tab-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--stamp-light);
  color: var(--stamp);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   8. Front-to-Back Flow Timeline
   -------------------------------------------------------------------------- */
.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 960px;
  margin: 0 auto;
}

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background var(--transition-fast), padding var(--transition-fast);
}

.flow-step:hover {
  background: rgba(30, 111, 191, 0.03);
  padding-left: 12px;
}

.flow-num {
  font-family: 'Courier Prime', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast);
}

.flow-step:hover .flow-num,
.flow-step.is-highlight .flow-num {
  color: var(--stamp);
}

.flow-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.flow-body p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. AI Morning Report Section (§04 - The Flagship)
   -------------------------------------------------------------------------- */
.ai-section {
  background: #FFFFFF;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 80px;
  padding-bottom: 80px;
}

.ai-simulator-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 48px;
}

.ai-sim-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ai-sim-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.ai-sim-tab {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.ai-sim-tab:hover {
  background: rgba(30, 111, 191, 0.08);
  color: var(--stamp);
}

.ai-sim-tab.is-active {
  background: var(--stamp);
  color: #FFFFFF;
}

.ai-sim-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
}

.ai-sim-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
}

.ai-sim-email {
  padding: 36px;
  background: #FFFFFF;
  border-right: 1px solid var(--rule);
}

.email-meta-header {
  border-bottom: 2px solid var(--stamp);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.email-subject {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.email-timing {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.email-lead-narrative {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-warm);
  padding: 16px;
  border-left: 3px solid var(--stamp);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}

.email-data-table {
  width: 100%;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  border-collapse: collapse;
}

.email-data-table tr {
  border-bottom: 1px dotted var(--rule-strong);
}

.email-data-table tr:last-child {
  border-bottom: none;
}

.email-data-table td {
  padding: 8px 4px;
}

.email-data-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.val-up {
  color: var(--ok-text);
}
.val-warn {
  color: var(--coral-text);
}

.ai-sim-sidebar {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper-warm);
}

.sim-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.sim-sidebar-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.sim-insight-box {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.sim-insight-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}

.sim-insight-text {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* The Trust Block */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.trust-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--stamp-border);
}

.trust-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--stamp);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.trust-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   10. Interactive Kitchen Display (KDS)
   -------------------------------------------------------------------------- */
.kds-section {
  background: #0F1722;
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.kds-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(2px);
}

.kds-container {
  position: relative;
  z-index: 2;
}

.kds-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.kds-title {
  color: #FFFFFF;
}

.kds-filters {
  display: flex;
  gap: 8px;
}

.kds-filter-chip {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.kds-filter-chip:hover,
.kds-filter-chip.is-active {
  background: #FFFFFF;
  color: #0F1722;
}

.kds-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.kds-rail::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #334155, #64748B, #334155);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.kds-ticket {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}

.kds-ticket:hover {
  transform: translateY(-4px);
  border-color: #64748B;
}

.kds-ticket.is-bumping {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

.kds-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.kds-ticket-label {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F1F5F9;
}

.kds-ticket-time {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.kds-ticket-time.is-ok {
  background: var(--ok-light);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.kds-ticket-time.is-wait {
  background: var(--wait-light);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.kds-ticket-time.is-late {
  background: var(--late-light);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.kds-ticket-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.kds-ticket-items li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #E2E8F0;
}

.kds-bump-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.kds-bump-btn:hover {
  background: var(--ok);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   11. Animated Stat Counters
   -------------------------------------------------------------------------- */
.stats-strip {
  padding: 56px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 1;
}

.stat-label {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 24ch;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Interactive Floor Plan & Course Stage Simulator
   -------------------------------------------------------------------------- */
.floorplan-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.floorplan-visual {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.floorplan-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-vacant { background: #94A3B8; }
.dot-seated { background: var(--stamp); }
.dot-fired  { background: var(--wait); }
.dot-bill   { background: var(--ok); }

.tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.table-node {
  background: var(--paper-warm);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}

.table-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--stamp);
}

.table-node.is-selected {
  border-color: var(--stamp);
  background: var(--stamp-light);
  box-shadow: 0 0 0 2px var(--stamp-border);
}

.table-num {
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.table-status-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.pill-seated { background: rgba(30, 111, 191, 0.12); color: #1C68B3; }
.pill-fired  { background: rgba(217, 130, 43, 0.12); color: var(--wait-text); }
.pill-bill   { background: rgba(30, 158, 104, 0.12); color: var(--ok-text); }
.pill-vacant { background: rgba(148, 163, 184, 0.15); color: #5C6A7F; }

/* Interactive Table Control Panel */
.table-details-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.table-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.table-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.course-stepper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  font-size: 14px;
  font-weight: 600;
}

.course-item.is-done {
  color: var(--ok-text);
  background: var(--ok-light);
}

.course-item.is-active {
  color: var(--wait-text);
  background: var(--wait-light);
  border-left: 3px solid var(--wait);
}

.course-item.is-queued {
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   13. Stock & Real-time Margin Visualizer
   -------------------------------------------------------------------------- */
.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.stock-meter-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.meter-item {
  margin-bottom: 22px;
}

.meter-item:last-child {
  margin-bottom: 0;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.meter-bar-track {
  height: 8px;
  background: var(--rule-light);
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease-out);
}

.bar-ok   { background: var(--ok); }
.bar-wait { background: var(--wait); }
.bar-late { background: var(--coral); }

/* Interactive Margin Calculator */
.margin-calc-box {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.calc-slider-row {
  margin-bottom: 16px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--stamp);
}

.calc-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.calc-output-box {
  background: #FFFFFF;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-light);
}

.calc-output-val {
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.calc-output-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Kiosk & Offline Band
   -------------------------------------------------------------------------- */
.kiosk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.kiosk-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.serve-photo {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.kiosk-shot img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.offline-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #12294B;
  color: #FFFFFF;
}

.offline-banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.offline-banner-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 41, 75, 0.65);
}

.offline-banner-title {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  max-width: 24ch;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 1;
}

/* --------------------------------------------------------------------------
   15. Interactive Pricing Section (§12)
   -------------------------------------------------------------------------- */
.pricing-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.billing-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.billing-label.is-active {
  color: var(--stamp);
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--rule-strong);
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--stamp);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.discount-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--ok-text);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Pricing Matrix Cards */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.is-featured {
  border-color: var(--stamp);
  box-shadow: 0 8px 30px rgba(30, 111, 191, 0.15);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--stamp);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-price-wrap {
  margin: 16px 0 20px;
}

.plan-price {
  font-family: 'Courier Prime', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-price-period {
  font-size: 14px;
  color: var(--ink-3);
}

.plan-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Feature Comparison Table */
.pricing-table-container {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pxt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pxt-table th, .pxt-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
}

.pxt-table th {
  background: var(--paper-warm);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-align: center;
}

.pxt-table th:first-child, .pxt-table td:first-child {
  text-align: left;
}

.pxt-table td {
  text-align: center;
  font-family: 'Courier Prime', monospace;
}

.group-row {
  background: var(--paper);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.check-yes {
  color: var(--ok-text);
  font-weight: bold;
}
.check-no {
  color: var(--ink-muted);
}

.pxt-table tbody tr:not(.group-row) {
  transition: background var(--transition-fast);
}

.pxt-table tbody tr:not(.group-row):hover {
  background: var(--stamp-light);
}

/* --------------------------------------------------------------------------
   16. Animated Accordion FAQ (§14)
   -------------------------------------------------------------------------- */
.faq-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.faq-filter-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  color: var(--ink-2);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.faq-filter-btn:hover,
.faq-filter-btn.is-active {
  background: var(--stamp);
  color: #FFFFFF;
  border-color: var(--stamp);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-sm);
}

.faq-card.is-open {
  border-color: var(--stamp-border);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  gap: 16px;
  background: transparent;
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--stamp);
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.faq-card.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--stamp-light);
  color: var(--stamp);
}

.faq-answer-pane {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
}

.faq-card.is-open .faq-answer-pane {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
}

.faq-answer-text {
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   17. Demo Booking Form (§15)
   -------------------------------------------------------------------------- */
.cta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.demo-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ff {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ff label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ff input, .ff textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  color: var(--ink);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.ff input:focus, .ff textarea:focus {
  outline: none;
  border-color: var(--stamp);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--stamp-light);
}

.ff[data-invalid] input {
  border-color: var(--late);
  background: #FFF5F5;
}

.ff-err {
  font-size: 12px;
  color: var(--late);
}

.ff-hp {
  display: none !important;
}

.ff-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.ff-note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.ff-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.ff-status[data-state="ok"] {
  background: var(--ok-light);
  color: var(--ok-text);
  border: 1px solid rgba(30, 158, 104, 0.3);
}

.ff-status[data-state="error"] {
  background: var(--late-light);
  color: var(--late);
  border: 1px solid rgba(217, 56, 78, 0.3);
}

/* --------------------------------------------------------------------------
   18. Footer & Cookie Consent
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--paper-dark);
  color: #94A3B8;
  padding: 60px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  color: #FFFFFF;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-col h3 {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
}

/* Cookie Banner */
.cc {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 10000;
  display: none;
  animation: slideInUp 300ms var(--ease-out);
}

.cc[data-open] {
  display: block;
}

.cc__txt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
}

.cc__btns {
  display: flex;
  gap: 10px;
}

.cc__btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.cc__btn--yes {
  background: var(--stamp);
  border-color: var(--stamp);
  color: #FFFFFF;
}

.cc__btn--yes:hover {
  background: var(--stamp-hover);
}

/* --------------------------------------------------------------------------
   19. Animations & Scroll Reveal
   -------------------------------------------------------------------------- */
@keyframes printIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   20. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid,
  .tab-pane,
  .floorplan-wrapper,
  .stock-grid,
  .kiosk-grid,
  .cta-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-sim-body {
    grid-template-columns: 1fr;
  }

  .ai-sim-email {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pillar-item {
    border-bottom: 1px solid var(--rule);
  }

  .kds-rail {
    grid-template-columns: 1fr;
  }

  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    height: 68px;
  }

  .hero-section {
    padding-top: 100px;
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar-item {
    padding: 16px 0;
    border-right: none;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
