/*
Theme Name: ProofPOS
Theme URI: https://www.proofpos.com.au/
Author: ProofPOS
Author URI: https://www.proofpos.com.au/
Description: Marketing site theme for ProofPOS, a one-off licence point-of-sale system for cafes, bakeries, and takeaways.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: proofpos
*/

:root {
  --bg: #0b1218;
  --panel: #111d27;
  --ink: #e9f2f8;
  --muted: #96a8b8;
  --brand: #ffb703;
  --brand-2: #67e8f9;
  --line: rgba(255, 255, 255, 0.11);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% -10%, #1b3040, var(--bg) 50%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

section[id],
main[id] {
  scroll-margin-top: 96px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-wordmark {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

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

nav a {
  color: var(--muted);
  transition: color 0.18s ease;
}

nav a:hover,
nav a:focus-visible,
nav a.is-active {
  color: var(--ink);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 18px 80px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 38px 24px;
  animation: rise 650ms ease-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/Barista_server.png") center / 115% auto no-repeat;
  background-color: #0b1218;
  opacity: 0.62;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    rgba(6, 12, 18, 0.62) 0%,
    rgba(6, 12, 18, 0.42) 45%,
    rgba(6, 12, 18, 0.2) 100%
  );
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6.2vw, 4.2rem);
  line-height: 1.03;
  margin: 0;
  max-width: 900px;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #ffd166);
  color: #101a22;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.panel {
  margin-top: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}

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

.grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

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

.feature-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.grid p,
.small,
.contact p {
  color: var(--muted);
  margin: 0;
}

.pricing .card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.08), transparent);
}

.comparison-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

.comparison-table th {
  color: var(--brand-2);
  background: rgba(103, 232, 249, 0.06);
  font-weight: 700;
}

.comparison-note {
  margin-top: 12px;
}

.source-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.source-list a {
  color: var(--ink);
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(103, 232, 249, 0.5);
  outline-offset: 1px;
}

.contact-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.form-status {
  min-height: 1.25rem;
  margin: 10px 0 0;
  color: var(--muted);
}

.form-status.success {
  color: #86efac;
}

.form-status.error {
  color: #fca5a5;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.label {
  margin: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.price {
  margin: 8px 0;
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 800;
}

.price span {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--muted);
}

.footer-links {
  margin: 8px 0 0;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--ink);
}

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

.manual-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), transparent);
}

.manual-card h2 {
  margin-bottom: 10px;
}

.manual-shell {
  max-width: 980px;
}

.manual-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.manual-content {
  display: grid;
  gap: 8px;
}

.manual-content h2 {
  margin-top: 10px;
}

.manual-content h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.manual-content p,
.manual-content li {
  color: var(--muted);
}

.manual-content ul,
.manual-content ol {
  margin: 0 0 8px 20px;
}

.page-hero {
  margin-top: 28px;
}

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

.gallery-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-error {
  margin-top: 10px;
  color: #fca5a5;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0a141d;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 12, 0.9);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.lightbox img {
  max-width: min(92vw, 980px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 29, 39, 0.95);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(55px);
  opacity: 0.2;
}

.orb-a {
  width: 260px;
  height: 260px;
  background: #6ee7b7;
  left: -70px;
  top: 120px;
}

.orb-b {
  width: 330px;
  height: 330px;
  background: #f59e0b;
  right: -120px;
  bottom: -70px;
}

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

@media (max-width: 820px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  nav {
    gap: 10px 14px;
    font-size: 0.9rem;
    justify-content: center;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  nav {
    gap: 8px 12px;
    font-size: 0.82rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  footer,
  .bg-orb,
  .btn.btn-ghost,
  [data-print-pdf] {
    display: none !important;
  }

  main,
  .manual-shell {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .panel {
    border: 0;
    background: #fff;
    padding: 0;
    margin: 0 0 18px;
    box-shadow: none;
  }

  .manual-content p,
  .manual-content li,
  .manual-content h2,
  .manual-content h3,
  .manual-content a,
  .lead,
  .eyebrow,
  h1 {
    color: #111 !important;
  }
}

/* ============================================================
   ProofPOS — one-off pricing / offline-first positioning
   Added August 2026
   ============================================================ */

/* Trust bar under the hero */
.trust-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(170deg, rgba(103, 232, 249, 0.06), transparent);
  display: grid;
  gap: 6px;
  align-content: start;
}

.trust-item strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Attention panel for the surcharge ban */
.alert-panel {
  border-color: rgba(255, 183, 3, 0.38);
  background: linear-gradient(170deg, rgba(255, 183, 3, 0.09), transparent 70%);
}

.eyebrow-alert {
  color: var(--brand);
}

/* One-off pricing tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
  align-content: start;
}

.tier-featured {
  border-color: rgba(255, 183, 3, 0.55);
  background: linear-gradient(150deg, rgba(255, 183, 3, 0.11), transparent 65%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.tier-flag {
  position: absolute;
  top: -11px;
  right: 16px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #101a22;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier .price {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 4px 0 10px;
}

.tier-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.tier-list li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}

.tier-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.tier .btn {
  justify-self: start;
}

.tier-foot {
  margin-top: 16px;
}

/* Highlighted row in comparison tables */
.comparison-table .row-highlight td {
  background: rgba(255, 183, 3, 0.09);
  font-weight: 700;
  color: var(--ink);
}

/* Numbered step lists */
.step-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
}

.step-list li {
  color: var(--muted);
  line-height: 1.55;
}

.step-list li strong {
  color: var(--ink);
}

/* Worked example callout */
.worked-example {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

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

.worked-example strong {
  color: var(--ink);
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand-2);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer origin line */
.footer-au {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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