:root {
  color-scheme: light;
  --ink: #053844;
  --muted: #58717a;
  --line: #d6e8e5;
  --surface: #ffffff;
  --soft: #f2faf7;
  --brand: #079a8a;
  --brand-dark: #063f49;
  --accent: #79c51f;
  --danger: #b33b35;
  --danger-soft: #fff0ed;
  --warning: #8a5b10;
  --warning-soft: #fff8e9;
  --shadow: 0 18px 48px rgba(5, 56, 68, 0.12);
  --tenant-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tenant-radius: 8px;
  --button-radius: 8px;
  --page-bg: radial-gradient(circle at top left, rgba(121, 197, 31, 0.13), transparent 34vw), linear-gradient(180deg, #f7fcfa 0%, var(--soft) 48%, #eef8f5 100%);
  --card-padding: 20px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

[hidden]:target {
  display: block !important;
}

body {
  margin: 0;
  font-family: var(--tenant-font);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.brand-home {
  display: grid;
  gap: 0;
  max-width: min(520px, 66vw);
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-home:focus-visible {
  outline: 3px solid rgba(7, 154, 138, 0.32);
  outline-offset: 6px;
  border-radius: var(--tenant-radius);
}

.brand-logo {
  width: min(520px, 66vw);
  max-height: 118px;
  display: block;
  margin-top: 0;
  object-fit: contain;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a,
.button,
.chip {
  min-height: 42px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

nav a {
  color: var(--ink);
}

nav a.nav-sub-link {
  position: relative;
  margin-left: -4px;
  padding-left: 26px;
  font-size: 0.92rem;
}

nav a.nav-sub-link::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  border-radius: 0 0 0 3px;
}

nav a.active-link {
  background: var(--ink);
  color: white;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.app-view,
.workspace {
  scroll-margin-top: 168px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: 42px 0 32px;
}

.landing-page {
  position: relative;
  overflow: hidden;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 32px auto auto 46%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(7, 154, 138, 0.2);
  border-radius: 50%;
  animation: pulse-ring 7s ease-in-out infinite;
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-page h2 {
  max-width: 720px;
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.landing-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.08), rgba(121, 197, 31, 0.16)),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(121, 197, 31, 0.18);
  filter: blur(10px);
  animation: float-soft 8s ease-in-out infinite;
}

.landing-visual img {
  position: relative;
  z-index: 1;
  width: min(86%, 520px);
  filter: drop-shadow(0 24px 34px rgba(5, 56, 68, 0.16));
  animation: logo-rise 900ms ease both;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 13px 14px;
  border: 1px solid rgba(214, 232, 229, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(5, 56, 68, 0.13);
  animation: float-card 5.6s ease-in-out infinite;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card strong {
  color: var(--brand-dark);
}

.card-orders {
  top: 34px;
  left: 28px;
}

.card-pickup {
  right: 24px;
  top: 44%;
  animation-delay: 0.7s;
}

.card-payment {
  left: 42px;
  bottom: 34px;
  animation-delay: 1.2s;
}

.hero-problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.hero-problem-list span {
  padding: 8px 12px;
  border: 1px solid rgba(7, 154, 138, 0.25);
  border-radius: 999px;
  background: rgba(232, 248, 244, 0.92);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.landing-features article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(5, 56, 68, 0.08);
}

.landing-features strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.landing-features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-freedom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(7, 154, 138, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.96), rgba(15, 155, 142, 0.9)),
    #003f4d;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 63, 77, 0.22);
  overflow: hidden;
}

.payment-freedom::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -90px;
  border: 34px solid rgba(122, 195, 34, 0.24);
  border-radius: 50%;
}

.payment-freedom .eyebrow,
.payment-freedom h2,
.payment-freedom p {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.payment-freedom h2 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.payment-freedom p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
}

.payment-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-choice-grid span,
.payment-choice-grid strong {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.payment-choice-grid strong {
  grid-column: 1 / -1;
  background: #ffffff;
  color: var(--brand-dark);
  text-align: center;
}

.everyday-flow {
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.95), rgba(5, 56, 68, 0.96)),
    var(--brand-dark);
}

.everyday-flow::after {
  right: auto;
  left: -78px;
  top: auto;
  bottom: -92px;
  border-color: rgba(255, 255, 255, 0.16);
}

.everyday-flow-grid span {
  display: grid;
  gap: 6px;
}

.everyday-flow-grid b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
}

.example-highlight {
  background:
    linear-gradient(135deg, rgba(5, 56, 68, 0.96), rgba(121, 197, 31, 0.78)),
    var(--brand-dark);
}

.example-highlight::after {
  border-color: rgba(255, 255, 255, 0.18);
  transform: rotate(18deg);
}

.example-highlight-grid {
  grid-template-columns: 1fr;
}

.example-highlight-grid span {
  display: grid;
  gap: 5px;
}

.example-highlight-grid b {
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.landing-section {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(5, 56, 68, 0.08);
}

.conversion-benefits {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 248, 0.96)),
    radial-gradient(circle at 90% 10%, rgba(121, 197, 31, 0.14), transparent 30%);
}

.benefit-grid,
.software-insight-grid,
.trust-grid,
.transparency-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-grid article,
.software-insight-grid article,
.trust-grid article,
.transparency-grid article,
.knowledge-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(5, 56, 68, 0.07);
}

.benefit-grid strong,
.software-insight-grid strong,
.trust-grid strong,
.transparency-grid strong,
.knowledge-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-dark);
  font-size: 1rem;
}

.benefit-grid p,
.software-insight-grid p,
.trust-grid p,
.transparency-grid p,
.knowledge-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.software-insight-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin-bottom: 18px;
}

.software-insight-grid article {
  min-height: 172px;
}

.software-insight-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(7, 154, 138, 0.12);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
}

.conversion-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 24px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(7, 154, 138, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 248, 244, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(5, 56, 68, 0.1);
}

.conversion-cta h2 {
  margin: 5px 0 8px;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.conversion-cta p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.video-layout,
.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(7, 154, 138, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.9), rgba(7, 154, 138, 0.72)),
    var(--brand-dark);
  color: #ffffff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video-placeholder span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  font-size: 1.6rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.video-placeholder strong {
  font-size: 1.35rem;
}

.video-placeholder p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
}
.video-player-frame {
  padding: 0;
  overflow: hidden;
  background: #001f26;
}

.video-player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border: 0;
  background: #001f26;
}

.video-step-list {
  display: grid;
  gap: 10px;
}

.video-step-list span,
.video-step-list strong,
.target-chip-grid span {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
}

.video-step-list span::before {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border-radius: 50%;
  background: rgba(121, 197, 31, 0.18);
  color: var(--brand);
}

.video-step-list span:first-child::before {
  content: "1";
}

.video-step-list strong {
  background: rgba(232, 248, 244, 0.98);
  color: var(--brand);
  text-align: center;
}

.trust-section,
.knowledge-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.trust-grid,
.knowledge-grid,
.transparency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beta-section {
  border-color: rgba(121, 197, 31, 0.45);
  background:
    linear-gradient(135deg, rgba(5, 56, 68, 0.96), rgba(7, 154, 138, 0.9)),
    var(--brand-dark);
  color: #ffffff;
}

.beta-section .eyebrow,
.beta-section h2,
.beta-section p {
  color: #ffffff;
}

.beta-section h2 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.beta-section p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.beta-benefits {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.beta-benefits strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.1rem;
}

.beta-benefits ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.target-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.target-chip-grid span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hidden-capabilities {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(12, 46, 38, 0.07);
}

.capability-grid span,
.hardware-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.capability-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.marketing-scenes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 248, 0.96)),
    radial-gradient(circle at 18% 14%, rgba(7, 154, 138, 0.14), transparent 34%);
}

.marketing-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-scene-card {
  overflow: hidden;
  border: 1px solid rgba(7, 154, 138, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(12, 46, 38, 0.1);
}

.marketing-scene-card img {
  display: block;
  width: 100%;
  height: clamp(210px, 22vw, 280px);
  object-fit: cover;
}

.marketing-scene-card:nth-child(1) img {
  object-position: 42% 48%;
}

.marketing-scene-card:nth-child(2) img {
  object-position: 63% 50%;
}

.marketing-scene-card:nth-child(3) img {
  object-position: 52% 42%;
}

.marketing-scene-card div {
  padding: 18px;
}

.marketing-scene-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marketing-scene-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.06rem;
  line-height: 1.35;
}

.marketing-scene-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.hardware-recommendations {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1180px;
  margin: 36px auto 0;
  padding: 30px;
  border: 1px solid rgba(7, 154, 138, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(7, 154, 138, 0.14), transparent 34%),
    linear-gradient(135deg, #f7fffb, #ffffff 48%, #eef8f4);
  box-shadow: 0 20px 52px rgba(12, 46, 38, 0.12);
}

.hardware-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.hardware-copy p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.hardware-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(7, 154, 138, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(12, 46, 38, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hardware-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 154, 138, 0.42);
}

.hardware-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hardware-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.hardware-card b {
  color: var(--brand-dark);
}

.hardware-visual {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 46, 38, 0.08), rgba(7, 154, 138, 0.14)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(12, 46, 38, 0.05) 12px 14px);
}

.scanner-beam {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 34px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
}

.scanner-body {
  position: absolute;
  left: 38px;
  top: 56px;
  width: 92px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.18);
}

.scanner-body::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d9f99d, #22c55e);
}

.scanner-handle {
  position: absolute;
  left: 72px;
  top: 88px;
  width: 30px;
  height: 54px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #111827, #374151);
}

.workflow-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.example-grid article {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.workflow-grid article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #ffffff;
  font-weight: 900;
}

.workflow-grid strong,
.example-grid strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.workflow-grid p,
.example-grid p,
.mock-content p,
.recommendation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-animation {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(7, 154, 138, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.08), rgba(121, 197, 31, 0.12)),
    #ffffff;
  overflow: hidden;
}

.flow-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(7, 154, 138, 0.16);
}

.flow-track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform-origin: left;
  animation: flow-line 4.8s ease-in-out infinite;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-height: 148px;
  align-content: center;
  justify-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  box-shadow: 0 12px 28px rgba(5, 56, 68, 0.08);
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #ffffff;
  font-weight: 900;
}

.flow-step strong {
  color: var(--brand-dark);
}

.flow-step small {
  color: var(--muted);
  font-weight: 800;
}

.flow-dot {
  position: absolute;
  z-index: 2;
  top: calc(50% - 8px);
  left: 8%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(121, 197, 31, 0.18);
  animation: flow-dot 4.8s ease-in-out infinite;
}

.screenshot-tabs {
  display: grid;
  gap: 14px;
}

.screenshot-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-screen {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(5, 56, 68, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.08), rgba(121, 197, 31, 0.13)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mock-top {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.mock-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.mock-top span:nth-child(2) {
  background: var(--accent);
}

.mock-top span:nth-child(3) {
  background: var(--brand-dark);
}

.mock-content {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 34px);
}

.mock-content.split {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  align-items: center;
}

.mock-content small {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
}

.mock-content h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.mock-field,
.mock-list-row,
.mock-settings span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  font-weight: 800;
}

.mock-field + .mock-field {
  margin-top: 10px;
}

.mock-menu-grid,
.mock-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mock-menu-grid span {
  position: relative;
  min-height: 104px;
  display: grid;
  place-items: end start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(242, 250, 247, 0.9)),
    #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
}

.mock-menu-grid span::before {
  content: "";
  position: absolute;
  inset: 14px auto auto 14px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: 18px 12px 0 rgba(121, 197, 31, 0.28);
}

.mock-menu-grid span:nth-child(2)::before {
  border-radius: 50%;
  background: var(--accent);
}

.mock-menu-grid span:nth-child(3)::before {
  width: 50px;
  height: 32px;
  border-radius: 50% 50% 14px 14px;
}

.mock-menu-grid span:nth-child(4)::before {
  width: 34px;
  height: 52px;
  border-radius: 8px 8px 16px 16px;
  background: var(--brand-dark);
}

.mock-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.mock-list-row span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mock-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
}

.mock-actions button:last-child {
  background: var(--brand-dark);
}

.mock-card-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 85mm));
  gap: 14px;
  justify-content: center;
  padding: clamp(18px, 4vw, 34px);
}

.mock-id-card {
  position: relative;
  min-height: 150px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px 78px 18px 18px;
  border: 1px solid rgba(5, 56, 68, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.12), transparent 52%),
    #ffffff;
}

.mock-id-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.mock-id-card b {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--brand-dark);
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
}

.package-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.package-calculator label,
.recommendation-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
}

.package-calculator label {
  align-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 8px 12px;
}

.package-calculator input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.package-calculator label strong {
  font-size: 1.18rem;
  line-height: 1;
}

.recommendation-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.96), rgba(15, 155, 142, 0.92)),
    var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 63, 77, 0.18);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.recommendation-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -44px;
  top: -48px;
  border: 20px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.recommendation-card[data-recommended-plan="Starter"] {
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.95), rgba(121, 197, 31, 0.8)),
    var(--brand);
}

.recommendation-card[data-recommended-plan="Professional"] {
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.96), rgba(15, 155, 142, 0.92)),
    var(--brand-dark);
}

.recommendation-card[data-recommended-plan="Enterprise"] {
  background:
    linear-gradient(135deg, rgba(5, 56, 68, 0.98), rgba(40, 74, 120, 0.9)),
    var(--brand-dark);
}

.recommendation-card span,
.recommendation-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.recommendation-card strong {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.recommendation-card p {
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 1;
}

.recommendation-card small {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.45;
}

.recommendation-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
}

.recommendation-card.recommendation-pulse {
  animation: recommendationPulse 0.42s ease;
}

@keyframes recommendationPulse {
  0% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.94), rgba(6, 63, 73, 0.96)),
    #063f49;
}

.maintenance-overlay > div {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.maintenance-overlay img {
  width: min(430px, 100%);
  margin-bottom: 18px;
}

.maintenance-overlay p {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(18, 107, 95, 0.25);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e7f2ee;
  font-weight: 800;
}

.hero-actions,
.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.danger {
  background: var(--danger);
  color: white;
}

.button.secondary,
.chip {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.chip.active {
  background: var(--ink);
  color: white;
}

.system-panel,
.workspace,
.integration-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.system-panel {
  border-radius: 8px;
  padding: 24px;
}

.panel-header,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-header {
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.metric-row {
  padding: 16px 0;
  color: var(--muted);
}

.metric-row strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.metric-row.warning strong {
  color: var(--danger);
}

.workspace,
.integration-card {
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  margin: 0 0 26px;
}

.order-page {
  margin-top: 28px;
  scroll-margin-top: 168px;
}

.order-deadline-note {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 154, 138, 0.24);
  border-radius: 8px;
  background: #e6f7f3;
  color: var(--brand-dark);
  font-weight: 900;
}

.platform-page,
.global-admin,
.legal-page {
  margin-top: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.pricing-card.featured {
  border-color: rgba(7, 154, 138, 0.42);
  box-shadow: 0 18px 42px rgba(7, 154, 138, 0.14);
}

.pricing-card.recommended-plan {
  position: relative;
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.96), rgba(15, 155, 142, 0.92)),
    var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 63, 77, 0.24);
}

.pricing-card.muted-plan {
  opacity: 0.72;
}

.pricing-card.recommended-plan::before {
  content: "Empfohlen";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.pricing-card.recommended-plan p,
.pricing-card.recommended-plan li,
.pricing-card.recommended-plan .price-note,
.pricing-card.recommended-plan strong {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card.recommended-plan h3,
.pricing-card.recommended-plan .plan-badge {
  color: #ffffff;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card .price-note {
  margin: -6px 0 0;
  color: var(--brand-dark);
  font-weight: 900;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
}

.pricing-card .plan-cta {
  width: 100%;
  align-self: end;
  margin-top: auto;
}

.booking-page .booking-form {
  align-items: end;
}

.booking-page textarea {
  resize: vertical;
}

.package-finder {
  margin-top: 18px;
  box-shadow: none;
}

.plan-badge,
.status-tag {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f7f3;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.monetization-options {
  margin-top: 16px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.period-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.stats-toolbar {
  align-items: end;
}

.stats-toolbar .button {
  min-height: 48px;
}

.option-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.option-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.option-grid code {
  color: var(--brand-dark);
  font-weight: 900;
}

.delivery-mode-grid {
  margin-top: 14px;
}

.tenant-table {
  min-width: 1080px;
}

.tenant-table td {
  vertical-align: middle;
}

.tenant-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.tenant-table .mini-action,
.tenant-table .status-tag {
  white-space: nowrap;
}

.legal-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  line-height: 1.45;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-block pre {
  white-space: pre-wrap;
  max-height: none;
  min-height: 0;
  margin-bottom: 0;
  font-family: inherit;
  color: var(--muted);
  background: #fbfcfd;
}

.compact {
  box-shadow: none;
}

.section-title {
  margin-bottom: 22px;
}

.section-title p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.demo-admin-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(7, 154, 138, 0.24);
  border-radius: var(--tenant-radius);
  background: rgba(7, 154, 138, 0.08);
  color: var(--brand-dark);
  font-weight: 800;
}

.order-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.order-title-row .button {
  flex: 0 0 auto;
  margin-top: 10px;
}

.order-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.customer-portal-button[hidden] {
  display: none;
}

.customer-portal-page {
  display: grid;
  gap: 16px;
}

.customer-portal-summary {
  margin-bottom: 0;
}

.customer-portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-portal-summary-grid span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.customer-portal-summary-grid small,
.customer-portal-order small {
  color: var(--muted);
  font-weight: 750;
}

.customer-portal-summary-grid strong {
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}

.customer-portal-weeks {
  display: grid;
  gap: 14px;
}

.customer-portal-week {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.customer-portal-week h4 {
  margin: 0;
  color: var(--brand-dark);
}

.customer-portal-order-list {
  display: grid;
  gap: 8px;
}

.customer-portal-order {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.3fr) minmax(160px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(7, 154, 138, 0.14);
  border-radius: 8px;
  background: #fff;
}

.customer-portal-order > div {
  display: grid;
  gap: 4px;
}

.customer-portal-order-status {
  justify-items: end;
}

.customer-portal-order-status strong {
  color: var(--brand-dark);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.order-login-fields {
  grid-column: 1 / -1;
  display: contents;
}

.order-form > label,
.order-form > button,
.order-form > .order-message {
  grid-column: span 4;
}

.order-form .field-wide {
  grid-column: span 6;
}

.order-form .field-medium {
  grid-column: span 6;
}

.order-form input,
.order-form select {
  min-height: 52px;
  font-size: 1rem;
}

.standalone-order {
  width: min(920px, 100%);
  margin: 28px auto 42px;
}

.meal-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.day-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.day-picker legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.day-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.day-picker input {
  width: 18px;
  min-height: 18px;
}

.order-cart {
  margin-top: 16px;
}

.meal-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.meal-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 132px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.meal-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meal-icon {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.meal-image {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--tenant-radius);
}

.meal-tile:has(input:checked) {
  border-color: rgba(7, 154, 138, 0.55);
  background: #e6f7f3;
  box-shadow: 0 0 0 3px rgba(7, 154, 138, 0.12);
}

.meal-tile small {
  color: var(--muted);
  font-weight: 800;
}

.order-message {
  grid-column: 1 / -1;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 800;
}

.order-total-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 154, 138, 0.25);
  border-radius: 8px;
  background: #e6f7f3;
  color: var(--brand-dark);
  font-weight: 800;
}

.order-total-preview strong {
  font-size: 1.08rem;
  text-align: right;
}

.order-total-preview small {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-weight: 700;
}

.legal-preview-box {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.legal-preview-box summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--brand-dark);
  font-weight: 900;
}

.legal-preview-box pre {
  max-height: 340px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.customer-match {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  gap: 8px;
  align-items: stretch;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-weight: 800;
}

.customer-match.matched {
  border-color: rgba(7, 154, 138, 0.25);
  background: #e6f7f3;
  color: var(--brand-dark);
}

.customer-match.error {
  border-color: rgba(179, 59, 53, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.customer-match-choice {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(7, 154, 138, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.customer-match-choice:hover,
.customer-match-choice:focus-visible {
  border-color: rgba(7, 154, 138, 0.42);
  background: #fff;
  outline: 3px solid rgba(7, 154, 138, 0.16);
  outline-offset: 1px;
}

.customer-match-choice strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.customer-match-choice span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 750;
}

.customer-login-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 154, 138, 0.25);
  border-radius: 8px;
  background: #e6f7f3;
  color: var(--brand-dark);
  font-weight: 800;
}

.customer-login-panel[hidden] {
  display: none;
}

.customer-login-panel strong,
.customer-login-panel span {
  overflow-wrap: anywhere;
}

.customer-password-change {
  align-items: end;
  flex-wrap: wrap;
  background: #f5fbfa;
}

.customer-password-change label {
  flex: 1 1 180px;
  font-weight: 700;
}

.customer-password-change input {
  margin-top: 4px;
}

.app-feedback {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1200;
  width: min(620px, calc(100vw - 24px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(11, 59, 68, 0.18);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.app-feedback.success {
  border-color: rgba(7, 154, 138, 0.32);
  background: #e6f7f3;
  color: var(--brand-dark);
}

.app-feedback.error {
  border-color: rgba(179, 59, 53, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.app-version-badge {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 28;
  padding: 3px 6px;
  border: 1px solid rgba(11, 59, 68, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(8, 53, 61, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.backup-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.backup-guide-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fcfb;
}

.backup-guide-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.backup-guide-grid p {
  margin: 0;
  color: var(--muted);
}

.backup-guide-steps {
  margin: 12px 0;
  padding-left: 22px;
  color: var(--ink);
}

.backup-guide-steps li {
  margin: 7px 0;
}

.system-guide-subtitle {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.demo-login-hint {
  grid-column: 1 / -1;
  margin: -2px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(7, 154, 138, 0.22);
  border-radius: 8px;
  background: #e6f7f3;
  color: var(--brand-dark);
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 16px;
}

input[type="color"] {
  min-height: 48px;
  padding: 4px;
}

input[type="file"] {
  padding: 10px;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eaf2ff;
  color: #26518f;
  font-weight: 800;
  white-space: nowrap;
}

.badge.picked {
  background: #edf7e8;
  color: #2d6b23;
}

.badge.paid {
  background: #edf7e8;
  color: #2d6b23;
}

.badge.unpaid {
  background: var(--danger-soft);
  color: var(--danger);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

pre {
  min-height: 180px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: #111b22;
  color: #dff4ea;
  font-size: 0.88rem;
  line-height: 1.55;
}

.pickup-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto minmax(220px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.scan-result {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e9;
  color: #6c4b12;
  font-weight: 800;
}

.pickup-order-list {
  margin-top: 12px;
}

.workflow-step-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto minmax(140px, 0.8fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}

.workflow-step.dragging {
  opacity: 0.55;
}

.workflow-step-handle {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 2px;
}

.pickup-order-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.pickup-order-option:focus-visible {
  outline: 3px solid rgba(21, 94, 117, 0.22);
  outline-offset: 2px;
}

.pickup-order-option input {
  width: 18px;
  min-height: 18px;
}

.pickup-order-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pagination-bar:empty {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stats-detail {
  margin-top: 14px;
}

.daily-meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.production-planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.day-stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.clickable-day {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.clickable-day:hover,
.clickable-day.active {
  border-color: rgba(18, 107, 95, 0.42);
  box-shadow: 0 14px 26px rgba(0, 63, 77, 0.1);
  transform: translateY(-2px);
}

.day-stat-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.day-stat-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-stat-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.day-stat-card strong {
  color: var(--ink);
}

.production-total-card {
  background: #f6fbf8;
  border-color: rgba(18, 107, 95, 0.24);
}

.production-total-card strong {
  text-align: right;
}

.production-list-card {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.production-list-card h4 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.production-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.production-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.production-table th,
.production-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.production-table tbody tr:hover {
  background: #f8fbfa;
}

.production-table th:first-child,
.production-table td:first-child {
  width: 34%;
}

.production-table th:nth-child(2),
.production-table td:nth-child(2) {
  width: auto;
}

.production-table th:last-child,
.production-table td:last-child {
  text-align: right;
  width: 110px;
  font-size: 1.05rem;
}

.production-day-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.production-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  justify-content: space-between;
  border: 1px solid rgba(18, 107, 95, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f6fbf8;
  color: var(--ink);
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .production-planning-grid {
    grid-template-columns: 1fr;
  }

  .production-table {
    table-layout: auto;
  }

  .production-table th,
  .production-table td {
    padding: 10px;
  }
}

.danger-amount {
  color: var(--danger) !important;
}

.muted-value {
  color: var(--muted) !important;
}

.pie-panel {
  margin-top: 14px;
}

.pie-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
  padding: 18px;
}

.pie-chart {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 12px solid #ffffff;
  box-shadow: 0 16px 36px rgba(0, 63, 77, 0.14);
}

.pie-content h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.pie-legend {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie-legend li,
.pie-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pie-legend span {
  justify-content: flex-start;
  color: var(--muted);
  font-weight: 800;
}

.pie-legend i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
  color: inherit;
  font: inherit;
  text-align: left;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

button.stat-card {
  cursor: pointer;
}

button.stat-card:hover,
.stat-card.active {
  border-color: rgba(18, 107, 95, 0.45);
  background: #e7f2ee;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-message {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-message.success {
  color: var(--brand-dark);
}

.admin-message.error {
  color: var(--danger);
}

.cash-balance-status {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}

.cash-balance-status.success {
  border-color: rgba(22, 163, 74, 0.35);
  background: #ecfdf3;
  color: #166534;
}

.cash-balance-status.error {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
  color: var(--danger);
}

.cash-balance-status.pending {
  border-color: rgba(217, 119, 6, 0.35);
  background: #fffbeb;
  color: #92400e;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

#admin,
.global-admin {
  font-size: 0.94rem;
}

#admin .section-title h2,
.global-admin .section-title h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
}

#admin .section-title p,
.global-admin .section-title p,
#admin .card-copy,
.global-admin .card-copy {
  font-weight: 400;
}

#admin .chip,
.global-admin .chip,
#admin .button,
.global-admin .button,
#admin .mini-action,
.global-admin .mini-action,
#admin .link-button,
.global-admin .link-button {
  font-weight: 600;
}

#admin .data-card h3,
.global-admin .data-card h3,
#admin .tenant-admin-settings h4,
.global-admin .tenant-admin-settings h4 {
  font-weight: 650;
}

#admin .admin-message,
.global-admin .admin-message,
#admin .data-card-header span,
.global-admin .data-card-header span,
#admin .data-row span,
.global-admin .data-row span {
  font-weight: 500;
}

.demo-plan-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.demo-plan-switcher .admin-message {
  grid-column: 1 / -1;
  margin: 0;
}

.plan-switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.plan-feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-feature-card h4 {
  margin: 14px 0 8px;
  color: var(--brand-dark);
}

.plan-feature-card {
  min-width: 0;
  overflow: hidden;
}

.plan-feature-card .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-feature-card label {
  min-width: 0;
}

.plan-feature-card input,
.plan-feature-card select {
  min-width: 0;
}

.plan-feature-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.plan-feature-card .field-wide {
  grid-column: 1 / -1;
}

.feature-matrix-panel {
  position: relative;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(7, 154, 138, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 247, 0.94)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(5, 56, 68, 0.1);
  overflow: hidden;
}

.feature-matrix-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -120px;
  border: 32px solid rgba(121, 197, 31, 0.16);
  border-radius: 50%;
  animation: pulse-ring 8s ease-in-out infinite;
}

.feature-matrix-panel > * {
  position: relative;
  z-index: 1;
}

.public-feature-matrix {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-matrix-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(3, minmax(118px, 1fr));
  gap: 10px;
  align-items: stretch;
  animation: matrix-row-in 0.55s ease both;
}

.feature-matrix-row:nth-child(2) { animation-delay: 0.03s; }
.feature-matrix-row:nth-child(3) { animation-delay: 0.06s; }
.feature-matrix-row:nth-child(4) { animation-delay: 0.09s; }
.feature-matrix-row:nth-child(5) { animation-delay: 0.12s; }
.feature-matrix-row:nth-child(6) { animation-delay: 0.15s; }
.feature-matrix-row:nth-child(7) { animation-delay: 0.18s; }
.feature-matrix-row:nth-child(n + 8) { animation-delay: 0.21s; }

.feature-matrix-row > * {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(7, 154, 138, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(5, 56, 68, 0.045);
}

.feature-matrix-head > * {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 63, 77, 0.97), rgba(15, 155, 142, 0.9)),
    var(--brand-dark);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-matrix-row .included {
  color: var(--brand-dark);
  background: linear-gradient(135deg, #ecfff6, #ffffff);
  border-color: rgba(7, 154, 138, 0.22);
}

.feature-matrix-row .included::before {
  content: "✓ ";
  color: var(--brand);
}

.feature-matrix-row .addon {
  color: #6c4a00;
  background: linear-gradient(135deg, #fff7df, #ffffff);
  border-color: rgba(239, 180, 90, 0.4);
}

.feature-matrix-row .addon::before {
  content: "+ ";
  color: #9a6b00;
}

.feature-matrix-row .excluded {
  color: var(--muted);
  background: #f8faf9;
}

.feature-matrix-row .excluded::before {
  content: "– ";
}

.addon-pricing-card {
  margin-top: 18px;
}

.addon-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.addon-price-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(7, 154, 138, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.addon-price-grid strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.addon-price-grid span {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 950;
}

.addon-price-grid small {
  color: var(--muted);
  font-weight: 800;
}

.feature-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.global-admin .admin-tabs {
  position: static;
  margin: 0 0 16px;
}

.global-diagnostics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

.global-diagnostics-grid > .data-card {
  min-width: 0;
  overflow: hidden;
}

.global-diagnostics-grid .settings-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.global-diagnostics-grid .sync-actions {
  align-items: end;
}

.global-diagnostics-grid .sync-actions form {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.global-diagnostics-grid .sync-actions select {
  flex: 1 1 220px;
  min-width: 0;
}

.global-diagnostics-grid .data-row {
  min-width: 0;
}

.global-diagnostics-grid .data-row strong,
.global-diagnostics-grid .data-row span {
  overflow-wrap: anywhere;
}

.admin-section {
  display: grid;
  gap: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.nested-card {
  margin-top: 16px;
  background: #ffffff;
}

.customer-stat-row {
  grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) auto;
  align-items: start;
}

.customer-stat-row.expanded {
  border-color: rgba(18, 107, 95, 0.22);
  background: #ffffff;
}

.customer-stat-name {
  justify-self: start;
  font-weight: 950;
  width: fit-content;
}

.customer-stat-meta {
  align-self: center;
  min-width: 0;
}

.customer-open-amount {
  justify-self: end;
  align-self: center;
  padding: 6px 10px;
  border: 1px solid rgba(188, 58, 58, 0.22);
  border-radius: 999px;
  color: var(--danger);
  background: #fff1f1;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.customer-open-placeholder {
  display: block;
}

.customer-inline-stats {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(18, 107, 95, 0.22);
  border-radius: 8px;
  background: #f8fcfa;
}

.compact-stat-order {
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) auto minmax(190px, auto);
  align-items: center;
}

.staff-tab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.staff-tab-grid legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.staff-tab-grid label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fcfa;
  font-size: 0.86rem;
  font-weight: 800;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.data-card.wide {
  grid-column: 1 / -1;
}

.data-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.card-copy {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.custom-item-form .button {
  align-self: end;
}

.role-price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.role-price-panel h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.role-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.meal-icon-preview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcfb;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.meal-icon-preview .meal-icon {
  width: 52px;
  height: 52px;
}

.meal-admin-row {
  grid-template-columns: auto 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.meal-admin-row.dragging {
  opacity: 0.55;
}

.meal-admin-row.drag-over {
  border-color: rgba(7, 154, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(7, 154, 138, 0.11);
}

.meal-admin-visual .meal-icon,
.meal-admin-visual .meal-image {
  width: 52px;
  height: 52px;
}

.meal-admin-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.drag-handle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  cursor: grab;
  font-weight: 900;
}

.settings-action {
  display: grid;
  align-content: end;
  gap: 7px;
}

.settings-action .button {
  width: 100%;
  min-height: 44px;
}

.tenant-admin-settings {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tenant-admin-settings h4 {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 1rem;
}

.tenant-logo-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.tenant-logo-preview span {
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.tenant-logo-preview img {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.tenant-logo-preview small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-shop-mode [data-view-link="home"],
.tenant-shop-mode [data-view-link="platform"],
.tenant-shop-mode [data-view-link="global"],
.tenant-shop-mode [data-view-link="terms"],
.tenant-shop-mode .footer-title,
.tenant-shop-mode footer a[href="#plattform"],
.tenant-shop-mode footer a[href="#global-admin"],
.tenant-shop-mode footer a[href="#agb"],
.tenant-shop-mode:not(.demo-page) .demo-login-hint,
.tenant-shop-mode:not(.demo-page) .demo-admin-note,
.tenant-shop-mode .demo-plan-switcher,
.tenant-shop-mode .order-title-row > a[href="#admin"],
.tenant-shop-mode .order-title-actions > a[href="#admin"] {
  display: none;
}

.tenant-shop-mode footer {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tenant-shop-mode .footer-menu {
  justify-content: center;
}

.tenant-powered {
  color: var(--muted);
  display: block;
  width: 100%;
  font-size: 0.9rem;
}

.tenant-powered a {
  color: var(--brand-dark);
  font-weight: 800;
}

.tenant-shop-mode .cookie-consent .cookie-option:not(.is-required),
.tenant-shop-mode .cookie-consent #saveCookieSettings {
  display: none;
}

.tenant-shop-mode #admin input,
.tenant-shop-mode #admin select,
.tenant-shop-mode #admin textarea {
  font-size: 0.92rem;
  font-weight: 400;
}

.tenant-shop-mode #admin label {
  font-weight: 600;
}

.tenant-admin-close {
  position: absolute;
  top: 0;
  right: 0;
}

.tenant-shop-mode #admin .section-title {
  position: relative;
  padding-right: 190px;
}

.hero-panel,
.feature-card,
.audience-card,
.story-card,
.preview-card,
.flow-visual,
.pricing-card,
.package-finder,
.shop-shell,
.admin-shell,
.data-card,
.modal-content,
.table-shell,
.data-row,
.tenant-card,
.legal-panel,
.device-status,
input,
select {
  border-radius: var(--tenant-radius);
}

.pricing-card,
.feature-card,
.audience-card,
.story-card,
.preview-card,
.package-finder,
.data-card,
.tenant-card,
.admin-shell,
.shop-shell {
  box-shadow: var(--shadow);
}

.data-card,
.pricing-card,
.tenant-card {
  padding: var(--card-padding);
}

.settings-grid.single {
  grid-template-columns: 1fr;
}

.device-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 800;
}

.card-generator-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.compact-actions {
  margin-top: 0;
}

.card-person-quick-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 2px 2px 4px;
}

.card-person-choice {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.card-person-choice:hover,
.card-person-choice.is-selected {
  border-color: var(--brand);
  background: #e6f7f3;
}

.card-person-choice span {
  font-weight: 900;
}

.card-person-choice small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.qr-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.qr-status-badge.has-qr {
  background: #dcfce7;
  color: #166534;
}

.qr-status-badge.missing-qr {
  background: #fff7ed;
  color: #9a3412;
}

.card-people-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.person-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.person-check input {
  width: 18px;
  min-height: 18px;
  grid-row: span 2;
}

.person-check small {
  color: var(--muted);
  font-weight: 700;
}

.person-check .qr-status-badge {
  grid-column: 2;
}

.card-preview-area {
  display: grid;
  gap: 12px;
}

.card-sheet {
  display: grid;
  justify-content: center;
  gap: 12px;
}

.card-print-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 85mm), 85mm));
  justify-content: center;
  gap: 12px;
}

.id-card {
  position: relative;
  width: 85mm;
  max-width: 100%;
  height: 55mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34mm;
  align-items: center;
  gap: 3mm;
  padding: 5mm;
  border: 1px solid #cbd5df;
  border-radius: 3mm;
  background:
    linear-gradient(135deg, rgba(7, 154, 138, 0.12), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.08);
  overflow: hidden;
}

.card-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  width: 6mm;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

.card-content {
  position: relative;
  z-index: 1;
  padding-left: 3mm;
}

.id-card-kicker {
  display: block;
  margin-bottom: 5mm;
  color: var(--brand);
  font-size: 9pt;
  font-weight: 900;
  text-transform: uppercase;
}

.id-card strong {
  display: block;
  font-size: 13pt;
  line-height: 1.1;
}

.id-card small {
  display: block;
  margin-top: 2mm;
  color: var(--muted);
  font-size: 8pt;
  font-weight: 800;
}

.id-card b {
  display: block;
  margin-top: 5mm;
  font-size: 10pt;
  letter-spacing: 0.04em;
}

.qr-box {
  position: relative;
  z-index: 1;
  width: 36mm;
  height: 36mm;
  display: grid;
  place-items: center;
  border: 1px solid #dbe2ea;
  border-radius: 1.2mm;
  background: white;
  box-shadow: inset 0 0 0 1.6mm #ffffff;
  overflow: visible;
}

.qr-svg {
  display: block;
  width: 32mm;
  height: 32mm;
  shape-rendering: crispEdges;
  fill: #000;
}

.qr-svg path,
.qr-svg rect {
  shape-rendering: crispEdges;
}

.qr-missing {
  width: 30mm;
  height: 30mm;
  display: grid;
  place-items: center;
  gap: 1mm;
  padding: 2mm;
  color: #9f1239;
  text-align: center;
  border: 1px dashed #fda4af;
  background: #fff1f2;
}

.qr-missing span {
  font-size: 16pt;
  font-weight: 800;
  letter-spacing: 0;
}

.qr-missing small {
  font-size: 6pt;
  line-height: 1.1;
}

.card-branding {
  position: absolute;
  left: 9mm;
  right: auto;
  bottom: 1.8mm;
  display: flex;
  align-items: flex-end;
  gap: 1.4mm;
  max-width: 43mm;
  color: var(--brand-dark);
  font-size: 6.4pt;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: left;
}

.card-branding img {
  width: 6.5mm;
  height: 6.5mm;
  flex: 0 0 6.5mm;
  object-fit: contain;
}

.card-branding span,
.card-branding b,
.card-branding em {
  display: block;
  min-width: 0;
}

.card-branding b {
  font-size: 6.4pt;
  text-transform: uppercase;
}

.card-branding em {
  max-width: 34mm;
  overflow: hidden;
  color: var(--muted);
  font-size: 5.5pt;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.data-card-header.compact-header {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.data-card-header h3 {
  margin: 0;
}

.compact-header {
  margin-top: 16px;
}

.data-card-header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.inline-select {
  width: min(180px, 100%);
  display: grid;
  gap: 4px;
}

.data-list {
  display: grid;
  gap: 10px;
}

.data-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-admin-panel {
  margin-bottom: 16px;
}

.compact-stats {
  margin-top: 12px;
}

.account-create-form {
  margin: 12px 0 18px;
}

.customer-account-row {
  grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(260px, 1.5fr);
  align-items: start;
}

.customer-account-row code {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.account-actions {
  display: grid;
  gap: 8px;
}

.account-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-actions input {
  min-width: 110px;
  flex: 1 1 110px;
}

@media (max-width: 980px) {
  .global-diagnostics-grid .settings-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .customer-account-row {
    grid-template-columns: 1fr;
  }
}

.mini-action {
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(18, 107, 95, 0.25);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: #e7f2ee;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.mini-input {
  width: 130px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
}

.link-button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--brand-dark);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.customer-edit-form {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.customer-edit-form .field-wide {
  grid-column: 1 / -1;
}

.mini-action.secondary-action {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.data-row span,
.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-state {
  margin: 0;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 42px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.84rem;
}

footer a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-menu a {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.footer-menu a.active-link {
  background: transparent;
  color: var(--brand-dark);
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(2, 43, 49, 0.18);
  backdrop-filter: blur(12px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-copy {
  min-width: 0;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cookie-links a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.cookie-links a:hover {
  text-decoration: underline;
}

.cookie-options {
  display: grid;
  gap: 10px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 249, 0.9);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.cookie-option small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-option.is-required {
  background: rgba(238, 245, 242, 0.9);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
}

.beta-popup {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 43, 49, 0.34);
  backdrop-filter: blur(8px);
}

.beta-popup[hidden] {
  display: none;
}

.beta-popup-card {
  position: relative;
  width: min(620px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(2, 43, 49, 0.24);
}

.beta-popup-card h2 {
  margin: 4px 0 10px;
  color: var(--brand-dark);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.beta-popup-offer {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 154, 138, 0.2);
  border-radius: 10px;
  color: var(--brand-dark);
  background: rgba(7, 154, 138, 0.08);
  font-weight: 700;
  line-height: 1.45;
}

.beta-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-dark);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.beta-popup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.beta-popup-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.beta-popup-form input,
.beta-popup-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
}

.beta-popup-form .wide,
#betaPopupMessage,
.beta-popup-actions {
  grid-column: 1 / -1;
}

.beta-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  font-weight: 500;
}

.beta-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.beta-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 43, 49, 0.38);
}

.document-modal[hidden] {
  display: none;
}

.document-dialog {
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 43, 49, 0.22);
}

.document-dialog iframe {
  width: 100%;
  min-height: 560px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pickup-scan-dialog {
  width: min(560px, 94vw);
  font-size: 1.08rem;
}

.pickup-scan-dialog h3 {
  font-size: 1.65rem;
}

.pickup-scan-dialog .card-copy {
  font-size: 1.12rem;
}

.pickup-modal-order {
  align-items: center;
  font-size: 1.12rem;
}

.pickup-modal-order strong {
  font-size: 1.18rem;
}

.pickup-modal-order span {
  font-size: 1.08rem;
}

.pickup-confirm-large {
  min-height: 64px;
  width: 100%;
  justify-content: center;
  font-size: 1.45rem;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -18px) scale(1.08);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

@keyframes matrix-row-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logo-rise {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes flow-line {
  0% {
    transform: scaleX(0);
  }
  32%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes flow-dot {
  0%,
  12% {
    left: 8%;
  }
  34%,
  46% {
    left: 32%;
  }
  60%,
  72% {
    left: 56%;
  }
  88%,
  100% {
    left: calc(92% - 16px);
  }
}

@media (max-width: 900px) {
  .app-view,
  .workspace,
  .order-page {
    scroll-margin-top: 210px;
  }

  .topbar,
  .hero,
  .landing-features,
  .payment-freedom,
  .benefit-grid,
  .conversion-cta,
  .software-insight-grid,
  .video-layout,
  .beta-grid,
  .trust-grid,
  .transparency-grid,
  .knowledge-grid,
  .workflow-grid,
  .flow-animation,
  .example-grid,
  .mock-content.split,
  .package-calculator,
  .cookie-consent,
  .demo-plan-switcher,
  .two-column,
  .pickup-grid,
  .admin-login,
  .admin-grid,
  .settings-grid,
  .period-stats-grid,
  .pricing-grid,
  .feature-matrix-row,
  .addon-price-grid,
  .plan-feature-matrix,
  .capability-grid,
  .marketing-scene-grid,
  .hardware-recommendations,
  .hardware-card,
  .option-grid,
  .pie-card,
  .legal-editor-grid,
  .card-generator-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding: 34px 0;
  }

  .landing-visual {
    min-height: 330px;
  }

  .mock-card-sheet {
    grid-template-columns: 1fr;
  }

  .order-form,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pie-chart {
    width: min(210px, 60vw);
    justify-self: center;
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .hardware-recommendations {
    padding: 20px;
  }

  .hardware-visual {
    min-height: 130px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    gap: 14px;
    padding: 14px 12px 10px;
  }

  .customer-stat-row {
    grid-template-columns: 1fr;
  }

  .compact-stat-order {
    grid-template-columns: 1fr;
  }

  .customer-open-amount {
    justify-self: start;
  }

  .public-feature-matrix {
    gap: 12px;
  }

  .feature-matrix-head {
    display: none;
  }

  .feature-matrix-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(5, 56, 68, 0.06);
  }

  .feature-matrix-row > * {
    border-radius: 7px;
  }

  .feature-matrix-row > span:first-child {
    padding: 0 0 4px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-size: 1rem;
  }

  .feature-matrix-row > span[data-plan] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .feature-matrix-row > span[data-plan]::before {
    content: attr(data-plan);
    color: var(--brand-dark);
    font-weight: 950;
  }

  .topbar .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  nav {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    background: #f7faf9;
    border: 1px solid var(--line);
  }

  .landing-page h2 {
    font-size: 2.2rem;
  }

  .landing-visual {
    min-height: 300px;
  }

  .landing-section {
    padding: 16px;
  }

  .screenshot-tabbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .mock-screen {
    min-height: auto;
  }

  .flow-animation {
    padding: 16px;
  }

  .flow-track,
  .flow-dot {
    display: none;
  }

  .flow-step {
    min-height: 108px;
  }

  .mock-menu-grid,
  .mock-settings {
    grid-template-columns: 1fr;
  }

  .mock-list-row {
    display: grid;
    gap: 5px;
  }

  .mock-list-row span {
    text-align: left;
  }

  .floating-card {
    min-width: 122px;
    padding: 10px;
    font-size: 0.82rem;
  }

  .card-orders {
    top: 18px;
    left: 14px;
  }

  .card-pickup {
    right: 12px;
  }

  .card-payment {
    left: 16px;
    bottom: 18px;
  }

  .hero {
    gap: 18px;
    padding: 22px 0;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.55;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 1.12;
  }

  .status-pill {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .system-panel,
  .workspace,
  .integration-card {
    box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
  }

  .system-panel {
    padding: 16px;
  }

  .metric-row {
    padding: 12px 0;
  }

  .workspace,
  .integration-card {
    padding: 16px;
    margin-bottom: 18px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .order-title-row {
    display: grid;
  }

  .order-title-actions {
    justify-content: stretch;
  }

  .order-title-row .button {
    width: 100%;
    margin-top: 0;
  }

  .customer-portal-summary-grid,
  .customer-portal-order {
    grid-template-columns: 1fr;
  }

  .customer-portal-order-status {
    justify-items: start;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .order-form > label,
  .order-form > button,
  .order-form > .order-message,
  .order-total-preview,
  .legal-preview-box,
  .customer-match,
  .day-picker,
  .order-form .field-wide,
  .order-form .field-medium {
    grid-column: 1 / -1;
  }

  .day-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meal-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button,
  .chip {
    min-height: 46px;
  }

  .filter-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    flex: 0 0 auto;
    min-width: 58px;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(23, 33, 43, 0.06);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  td:last-child {
    border-bottom: 0;
  }

  .two-column {
    gap: 12px;
  }

  pre {
    max-height: 260px;
    min-height: 140px;
    font-size: 0.78rem;
  }

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

  .scan-result {
    min-height: 52px;
  }

  .beta-popup-form {
    grid-template-columns: 1fr;
  }

  .beta-popup-card {
    padding: 22px 16px;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 20px, 1180px);
  }

  .button,
  .hero-actions .button,
  .sync-actions .button,
  .pickup-grid .button,
  .admin-login .button {
    width: 100%;
  }

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

  .stat-card {
    padding: 14px;
  }

  .stat-card strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 380px) {
  h2 {
    font-size: 1.55rem;
  }

  td {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

  .meal-picker {
    grid-template-columns: 1fr;
  }

  .day-picker {
    grid-template-columns: 1fr;
  }

  .mini-action {
    width: 100%;
  }

  .mini-input {
    width: 100%;
  }

  .row-actions {
    display: grid;
  }
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  body.printing-cards *,
  body.printing-staff-cards * {
    visibility: hidden !important;
  }

  body.printing-cards #cardSheet,
  body.printing-cards #cardSheet *,
  body.printing-staff-cards #staffCardSheet,
  body.printing-staff-cards #staffCardSheet * {
    visibility: visible !important;
  }

  body.printing-cards #cardSheet,
  body.printing-staff-cards #staffCardSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 190mm;
    display: grid;
    gap: 0;
  }

  body.printing-cards .card-print-page,
  body.printing-staff-cards .card-print-page {
    width: 190mm;
    min-height: 277mm;
    display: grid;
    grid-template-columns: repeat(2, 85mm);
    grid-auto-rows: 55mm;
    gap: 6mm 8mm;
    align-content: start;
    padding-top: 18mm;
    break-after: page;
    page-break-after: always;
  }

  body.printing-cards .card-print-page:last-child,
  body.printing-staff-cards .card-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  body.printing-cards .id-card,
  body.printing-staff-cards .id-card {
    width: 85mm;
    height: 55mm;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    background:
      linear-gradient(135deg, rgba(7, 154, 138, 0.12), transparent 44%),
      linear-gradient(180deg, #ffffff 0%, #f7faf9 100%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-cards .card-ribbon,
  body.printing-cards .qr-box,
  body.printing-cards .card-branding,
  body.printing-cards .card-content,
  body.printing-cards .qr-svg,
  body.printing-cards .qr-svg *,
  body.printing-staff-cards .card-ribbon,
  body.printing-staff-cards .qr-box,
  body.printing-staff-cards .card-branding,
  body.printing-staff-cards .card-content,
  body.printing-staff-cards .qr-svg,
  body.printing-staff-cards .qr-svg * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-cards .card-ribbon,
  body.printing-staff-cards .card-ribbon {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark)) !important;
  }

  body.printing-cards .qr-box,
  body.printing-staff-cards .qr-box {
    background: #ffffff !important;
  }
}
