/* POSLab marketing site — shared shell: nav, mobile menu, footer, language switch,
   plus the screenshot-placeholder frames. Markup is injected by site-shell.js. */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.word { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.045em; color: var(--logo-fg); }
.word b { color: var(--accent); font-weight: 800; }
.mark-d { display: none; }
[data-theme="dark"] .mark-l { display: none; }
[data-theme="dark"] .mark-d { display: block; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface-card); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px; font-weight: 600; }
.skip-link:focus { left: 24px; }

/* nav */
nav.site { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--surface-base) 84%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); min-width: 0; flex-wrap: wrap; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current] { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; white-space: nowrap; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; line-height: 1; transition: background var(--dur) var(--ease-out); }
.cta:hover { background: var(--accent-hover); color: var(--on-accent); }

/* icon buttons — theme toggle + hamburger */
.tt { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface-card); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); flex: none; }
.tt:hover { border-color: var(--accent); color: var(--text-primary); }
.ico-sun, .ico-x { display: none; }
[data-theme="dark"] .ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: block; }
.burger { display: none; }
body.nav-open .burger .ico-menu { display: none; }
body.nav-open .burger .ico-x { display: block; }

/* mobile drawer */
.nav-drawer { display: none; border-top: 1px solid var(--border); background: var(--surface-card); max-height: calc(100dvh - 62px); overflow-y: auto; overscroll-behavior: contain; }
body.nav-open .nav-drawer { display: block; }
.nav-drawer .wrap { padding-top: 8px; padding-bottom: 18px; }
.nav-drawer a { display: block; padding: 15px 0; font-size: 16px; font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--divider); }
.nav-drawer a[aria-current] { color: var(--accent); }
.nav-drawer .cta { display: flex; margin-top: 18px; padding: 15px 18px; font-size: 15px; border-bottom: none; color: var(--on-accent); }

/* footer */
footer.site { border-top: 1px solid var(--border); padding: 48px 0 34px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-cols h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 14px; }
.foot-cols nav { display: grid; gap: 10px; }
.foot-cols a { font-size: 13.5px; color: var(--text-secondary); }
.foot-blurb { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-top: 14px; max-width: 260px; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.copy { font-size: 12px; color: var(--text-muted); max-width: 640px; line-height: 1.5; }

/* ── screenshot placeholders ─────────────────────────────────────────
   Every product image on the site is an <image-slot> inside one of these
   frames. Drag a PNG onto a slot and it sticks. Frames are chrome only —
   the slot fills them. */
.shot { position: relative; }
.shot image-slot { display: block; width: 100%; height: 100%; }
.shot-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

/* browser / desktop frame */
.frame-web { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-web .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-elevated); }
.frame-web .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: none; }
.frame-web .url { margin-left: 10px; flex: 1; height: 20px; border-radius: 5px; background: var(--surface-base); border: 1px solid var(--border); display: flex; align-items: center; padding: 0 9px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.04em; overflow: hidden; white-space: nowrap; }
.frame-web .screen { aspect-ratio: 16 / 10; }

/* phone frame */
.frame-phone { width: 268px; border: 9px solid var(--text-primary); border-radius: 34px; background: var(--text-primary); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.frame-phone .notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 74px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.28); z-index: 2; }
.frame-phone .screen { aspect-ratio: 9 / 19; border-radius: 26px; overflow: hidden; }

/* counter terminal / KDS frame */
.frame-term { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-card); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-term .screen { aspect-ratio: 16 / 9; }
.frame-term .foot { height: 26px; border-top: 1px solid var(--border); background: var(--surface-elevated); display: flex; align-items: center; justify-content: center; }
.frame-term .foot i { width: 44px; height: 4px; border-radius: 2px; background: var(--border-strong); }

/* thermal paper frame — for bill / KOT shots */
.frame-paper { width: 232px; background: #fff; border-radius: 3px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.frame-paper .screen { aspect-ratio: 58 / 100; }
.frame-paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: repeating-linear-gradient(90deg, #fff 0 7px, transparent 7px 9px); -webkit-mask-image: linear-gradient(#000, #000); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .tt { width: 42px; height: 42px; }
  .brand { min-height: 44px; }
  .cta { padding: 12px 16px; }
  .foot-cols { display: block; column-count: 2; column-gap: 40px; }
  .foot-cols > div { break-inside: avoid; margin-bottom: 26px; }
  .foot-cols > div:last-child { margin-bottom: 0; }
  .foot-cols > div:first-child { column-span: all; margin-bottom: 28px; }
}
/* phones */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 62px; gap: 10px; }
  .cta { font-size: 13px; }
  .tt { width: 42px; height: 42px; }
  .brand { min-height: 44px; }
  .word { font-size: 17px; }
  /* Brand across the top, then the link groups packed into two columns.
     A grid left a hole under the short groups; columns pack them tight. */
  .foot-cols { column-gap: 18px; }
  .foot-cols > div { margin-bottom: 22px; }
  .foot-cols > div:first-child { margin-bottom: 24px; }
  .foot-cols h4 { margin-bottom: 11px; font-size: 9.5px; }
  .foot-cols nav { gap: 9px; }
  .foot-cols a { font-size: 13px; }
  .foot-blurb { max-width: none; margin-top: 12px; font-size: 12.5px; }
  .foot-bottom { margin-top: 28px; padding-top: 18px; gap: 12px; }
  .copy { font-size: 12px; }
  footer.site { padding: 34px 0 26px; }
  .nav-drawer a { padding: 14px 0; font-size: 15.5px; }
  .shot-cap { font-size: 10px; letter-spacing: 0.08em; }
  .frame-phone { width: 100%; max-width: 268px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .cta { padding: 12px 13px; font-size: 12.5px; }
  .word { font-size: 16px; }
  .nav-right { gap: 6px; }
}

/* Button rows stack full-width on phones — flex-wrap left them ragged and
   two-lane at different widths. Applies to the shared .btn-row, the home
   page's .cta-row / .price-cta, and any inline-styled pair in a closer. */
@media (max-width: 640px) {
  .btn-row, .cta-row, .price-cta,
  .closer > div:has(> .btn-primary), .closer > div:has(> .btn-ghost),
  div:has(> .btn-primary + .btn-wa), div:has(> .btn-wa + .btn-primary) {
    display: grid !important; grid-template-columns: 1fr; gap: 10px; width: 100%;
  }
  .btn-row > .btn-primary, .btn-row > .btn-ghost, .btn-row > .btn-wa,
  .cta-row > .btn-primary, .cta-row > .btn-ghost, .cta-row > .btn-wa,
  .price-cta > .btn-primary, .price-cta > .btn-ghost,
  .closer > div > .btn-primary, .closer > div > .btn-ghost, .closer > div > .btn-wa,
  div > .btn-primary + .btn-wa, div > .btn-wa + .btn-primary {
    width: 100%; justify-content: center; text-align: center;
  }
}

/* any wide block that would otherwise force the page sideways */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
