/* AinurPOS product landing page — palette lifted directly from the app's own UI
   (frontend/css/pos.css dark theme), not the mythic gold/weave site theme. */

:root {
  --ink: #0f172a;
  --ink-raised: #16213a;
  --panel: #1c2942;
  --sky: #38bdf8;
  --sky-deep: #0ea5e9;
  --amber: #fbbf24;
  --paper: #fdfaf3;
  --paper-dim: #e8e0cc;
  --text: #f1f5f9;
  --mist: #94a3b8;
  --line: #2a3a58;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pos-landing {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.pos-landing a { color: inherit; text-decoration: none; }

.pos-landing .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- nav ---------- */

.pos-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.pos-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.pos-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pos-nav .brand .from {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pos-nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--mist);
}

.pos-nav .links a:hover { color: var(--sky); }

.pos-nav .cta {
  background: var(--sky);
  color: #04202e;
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 700;
}

.pos-nav .cta:hover { background: var(--sky-deep); }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--sky); }

.hero .lead {
  font-size: 1.08rem;
  color: var(--mist);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--sky); color: #04202e; box-shadow: 0 10px 24px -10px rgba(56, 189, 248, 0.5); }
.btn-solid:hover { background: var(--sky-deep); }

.btn-ghost { border-color: rgba(148, 163, 184, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ---------- receipt printer signature element ---------- */

.printer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.printer-body {
  width: 100%;
  max-width: 300px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px 14px 6px 6px;
  padding: 14px 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 30px -16px rgba(0, 0, 0, 0.6);
}

.printer-slot {
  height: 8px;
  background: var(--ink);
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.printer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.printer-label .live { color: var(--sky); }

.receipt-frame {
  width: 100%;
  max-width: 264px;
  margin-top: -2px;
  overflow: hidden;
  z-index: 1;
  position: relative;
}

.receipt {
  background: var(--paper);
  color: #2a2418;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 18px 16px 22px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 24px 48px -18px rgba(2, 8, 23, 0.65), 0 4px 14px -6px rgba(56, 189, 248, 0.18);
  transform: translateY(-100%);
  animation: print-out 2.6s 0.4s cubic-bezier(.2,.8,.3,1) forwards;
}

.r-title {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.r-sub {
  text-align: center;
  color: #7a6d4f;
  font-size: 0.65rem;
  margin-bottom: 10px;
}

.r-rule {
  border-top: 1px dashed var(--paper-dim);
  margin: 8px 0;
}

.r-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.r-line span:first-child { color: #443a24; }
.r-line span:last-child { color: var(--sky-deep); font-weight: 700; }

.r-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2a2418;
}

.r-barcode {
  margin-top: 14px;
  height: 30px;
  background-image: repeating-linear-gradient(
    90deg, #2a2418 0 2px, transparent 2px 4px, #2a2418 4px 7px, transparent 7px 9px,
    #2a2418 9px 10px, transparent 10px 13px
  );
}

/* hero receipt only: staggered print-in reveal */
.receipt .r-line { opacity: 0; animation: line-in 0.4s ease forwards; }
.receipt .r-barcode { opacity: 0; animation: fade-in 0.5s ease forwards; animation-delay: 2.4s; }

@keyframes print-out {
  to { transform: translateY(0); }
}

@keyframes line-in {
  to { opacity: 1; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

.receipt .r-line:nth-child(3) { animation-delay: 0.9s; }
.receipt .r-line:nth-child(4) { animation-delay: 1.15s; }
.receipt .r-line:nth-child(5) { animation-delay: 1.4s; }
.receipt .r-line:nth-child(6) { animation-delay: 1.65s; }
.receipt .r-line:nth-child(7) { animation-delay: 1.9s; }
.receipt .r-line:nth-child(8) { animation-delay: 2.15s; }

@media (prefers-reduced-motion: reduce) {
  .receipt { animation: none; transform: translateY(0); }
  .receipt .r-line, .receipt .r-barcode { animation: none; opacity: 1; }
}

/* ---------- reality / receipt-line section ---------- */

.reality {
  background: var(--ink-raised);
  padding: 72px 0;
}

.reality .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.ledger { display: flex; flex-direction: column; }

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-row .label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.ledger-row .leader {
  flex: 1;
  height: 1px;
  margin-bottom: 6px;
  background: linear-gradient(to right, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.03));
}

.ledger-row .note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mist);
  text-align: right;
  max-width: 34ch;
}

.ledger-row .note .hl { color: var(--amber); }

/* ---------- keypad / feature grid ---------- */

.keypad-section { padding: 72px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
}

.section-head p { color: var(--mist); margin: 0; }

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

.key {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--ink-raised));
  border-radius: 16px;
  padding: 24px 20px 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 26px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.key::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--sky);
  opacity: 0.55;
}

.key:nth-child(even)::before { background: var(--amber); }

.key:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 34px -16px rgba(56, 189, 248, 0.28);
}

.key:nth-child(even):hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 34px -16px rgba(251, 191, 36, 0.25);
}

.key svg { width: 26px; height: 26px; margin-bottom: 16px; }

.key h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 0 0 6px;
}

.key p {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mist);
  margin: 0;
  line-height: 1.5;
}

/* ---------- screen mock ---------- */

.screen-section {
  padding: 80px 0 88px;
  background: var(--ink-raised);
}

.mock-frame {
  background: linear-gradient(160deg, var(--panel), var(--ink-raised));
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 6px 8px 12px;
}

.mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
}

.mock-screen {
  display: grid;
  grid-template-columns: 1fr 260px;
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  min-height: 340px;
}

.mock-products {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

.mock-card {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  height: 74px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.mock-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22); }
.mock-card:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.mock-card span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--mist);
}

.mock-card.filled { background: linear-gradient(160deg, rgba(56,189,248,0.18), rgba(56,189,248,0.02)); box-shadow: inset 0 0 0 1px rgba(56,189,248,0.4); }
.mock-card.filled span { color: var(--sky); }

.mock-card { position: relative; }

.mock-card-qty {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--sky);
  color: #04202e !important;
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mock-card-qty:not(:empty) { opacity: 1; transform: scale(1); }

.mock-cart {
  background: #101c33;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
}

.mock-cart-rows { display: flex; flex-direction: column; }

.mock-cart-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist);
  padding: 8px 4px;
  margin: 0 -4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  animation: line-in 0.3s ease;
}

.mock-cart-row:hover { background: rgba(239, 68, 68, 0.1); }
.mock-cart-row:hover span:last-child { color: #f87171; }

.mock-cart-row span:last-child { color: var(--text); }

.mock-cart-empty {
  margin: 0;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist);
  opacity: 0.6;
}

.mock-cart-total {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sky);
}

.mock-pay {
  margin-top: 12px;
  width: 100%;
  background: var(--sky);
  color: #04202e;
  text-align: center;
  padding: 12px;
  border: none;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.mock-pay:hover:not(:disabled) { background: var(--sky-deep); transform: translateY(-1px); }
.mock-pay:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.mock-pay:disabled {
  background: rgba(148, 163, 184, 0.14);
  color: var(--mist);
  cursor: not-allowed;
  transform: none;
}

.mock-pay.is-success { background: #34d399; color: #04241a; }

/* ---------- mock printer / interactive slip ---------- */

.mock-printer {
  margin-top: 16px;
  padding: 0 2px;
}

.mock-printer-slot {
  height: 6px;
  background: var(--ink);
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.mock-receipt-frame {
  overflow: hidden;
  max-width: 210px;
  margin: 0 auto;
}

.mock-receipt {
  background: var(--paper);
  color: #2a2418;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 12px 14px 14px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 36px -16px rgba(2, 8, 23, 0.6);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.2,.8,.3,1);
}

.mock-receipt.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .mock-receipt { transition: none; }
}

/* ---------- closing cta ---------- */

.closing {
  padding: 88px 0;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 14px;
}

.closing p {
  color: var(--mist);
  max-width: 46ch;
  margin: 0 auto 30px;
}

.closing .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */

.pos-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.pos-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pos-footer .mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
}

.pos-footer .links {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pos-footer .links a { color: var(--mist); }
.pos-footer .links a:hover { color: var(--sky); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .keypad { grid-template-columns: repeat(2, 1fr); }
  .mock-screen { grid-template-columns: 1fr; }
  .mock-cart { border-top: 1px solid rgba(148, 163, 184, 0.12); }
  .pos-nav .links a:not(.cta) { display: none; }
  .pos-nav .links { gap: 0; }
}

@media (max-width: 600px) {
  .pos-landing .wrap { padding: 0 20px; }

  .pos-nav .wrap { height: 60px; }
  .pos-nav .cta { padding: 8px 14px; font-size: 0.82rem; }

  .hero { padding: 44px 0 40px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { text-align: center; }

  .reality { padding: 44px 0; }
  .ledger-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0;
  }
  .ledger-row .leader { display: none; }
  .ledger-row .note { text-align: left; max-width: none; }

  .keypad-section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }

  .screen-section { padding: 52px 0 60px; }
  .mock-frame { padding: 8px; }
  .mock-products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mock-card { height: 64px; }

  .closing { padding: 56px 0; }
  .closing .actions { flex-direction: column; align-items: stretch; }
  .closing .actions .btn { text-align: center; }

  .pos-footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 420px) {
  .pos-nav .brand .from { display: none; }
}

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