@import url('fonts.css');

:root {
  --paper: #f2f2f2;
  --surface: #ffffff;
  --ink: #0c2a46;
  --muted: #4a6275;
  --olive: #0c2a46;
  --olive-deep: #011826;
  --olive-hero: #011826;
  --gold: #a67a53;
  --gold-soft: #d4b896;
  --line: #ddd7ce;
  --danger: #b3261e;
  --shadow: 0 18px 40px -22px rgba(1, 24, 38, .45);
  --radius: 16px;
  --maxw: 1120px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #011826;
    --surface: #0c2a46;
    --ink: #f2f2f2;
    --muted: #9db1c4;
    --olive: #7ca0be;
    --olive-deep: #c4976e;
    --olive-hero: #010f1a;
    --gold: #c4976e;
    --gold-soft: #3d2a1a;
    --line: #1a3550;
    --shadow: 0 18px 44px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

.page {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }

/* Utility replacements for former inline styles (kept out of markup so the app's
   strict CSP — no style 'unsafe-inline' — serves this page unchanged). */
.mt-1 { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent);
  padding: .35rem .8rem; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gold) 80%, black); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--wa { background: #1faf54; color: #fff; }
.btn--wa:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--olive); display: grid; place-items: center; flex: 0 0 auto; box-shadow: var(--shadow); }
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.brand__sub { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; color: var(--muted); line-height: 1; margin-top: 2px; letter-spacing: .03em; }
.topbar .btn { padding: .55rem 1.1rem; font-size: .92rem; }

.hero { position: relative; background: radial-gradient(120% 130% at 15% 0%, var(--olive-deep), var(--olive-hero) 60%); color: #f4f1e4; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline-end: -10%; inset-block-start: -30%; width: 55%; height: 160%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__lead { margin-top: 1.15rem; font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: color-mix(in srgb, #f4f1e4 82%, transparent); max-width: 46ch; }
.hero__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; font-size: .9rem; color: color-mix(in srgb, #f4f1e4 72%, transparent); }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 17px; height: 17px; color: var(--gold-soft); flex: 0 0 auto; }

.mock { background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); padding: 1rem; transform: rotate(1.2deg); }
.mock__bar { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .7rem; border-bottom: 1px solid var(--line); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock__title { margin-inline-start: auto; font-size: .78rem; color: var(--muted); font-weight: 700; }
.bubble { margin-top: .8rem; background: color-mix(in srgb, var(--olive) 10%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; display: flex; align-items: center; gap: .6rem; }
.bubble__thumb { width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(135deg, var(--olive), var(--olive-deep)); display: grid; place-items: center; flex: 0 0 auto; }
.bubble__thumb svg { width: 20px; height: 20px; color: #fff; }
.bubble__meta strong { display: block; font-size: .92rem; }
.bubble__meta span { font-size: .76rem; color: var(--muted); }
.extract { margin-top: .7rem; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 14px; padding: .8rem; }
.extract__head { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--olive); margin-bottom: .6rem; }
.extract__head svg { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-top: .6rem; font-size: .74rem; font-weight: 700; color: var(--olive-hero); background: var(--gold-soft); padding: .2rem .6rem; border-radius: 999px; }
.mock__illus { font-size: .68rem; color: var(--muted); text-align: center; margin-top: .55rem; }

.inv__badge { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, transparent); border-radius: 8px; padding: .4rem .55rem; margin: .8rem 0 .7rem; }
.inv__badge svg { width: 14px; height: 14px; flex: 0 0 auto; }
.inv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.inv__co { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.inv__addr, .inv__vat { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.inv__file { font-size: .66rem; font-weight: 700; color: var(--olive-hero); background: var(--gold-soft); padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.inv__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .7rem; color: var(--muted); padding: .55rem 0; border-bottom: 1px solid var(--line); }
.inv__meta b { color: var(--ink); font-weight: 700; }
.inv__table { width: 100%; border-collapse: collapse; font-size: .76rem; margin-top: .4rem; }
.inv__table th { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .3rem .15rem; text-align: start; }
.inv__table td { padding: .32rem .15rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.inv__table th:not(:first-child), .inv__table td:not(:first-child) { text-align: end; }
.inv__table td:first-child { font-weight: 600; }
.inv__totals { margin: .55rem 0 0; display: grid; gap: .22rem; font-size: .76rem; }
.inv__totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.inv__totals dt { color: var(--muted); margin: 0; }
.inv__totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.inv__grand { padding-top: .45rem; margin-top: .15rem; border-top: 1px solid var(--line); }
.inv__grand dt { color: var(--ink); font-weight: 700; }
.inv__grand dd { color: var(--olive); font-weight: 800; font-size: .92rem; }

section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 52ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-head p { margin-top: .8rem; color: var(--muted); font-size: 1.08rem; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pain { display: flex; gap: .75rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.pain svg { width: 22px; height: 22px; color: var(--danger); flex: 0 0 auto; margin-top: 3px; }
.pain p { font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 60%; height: 4px; background: linear-gradient(to right, var(--gold), transparent); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); display: grid; place-items: center; margin-bottom: 1rem; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; }
.feature p { margin-top: .5rem; color: var(--muted); font-size: .98rem; }
.feature h3 a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .25em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.step { position: relative; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: color-mix(in srgb, var(--olive) 45%, transparent); line-height: 1; }
.step h3 { margin-top: .4rem; font-size: 1.2rem; }
.step p { margin-top: .4rem; color: var(--muted); }

.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.why__card { background: linear-gradient(140deg, var(--olive-deep), var(--olive-hero)); color: #f4f1e4; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.why__stat { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--gold-soft); line-height: 1.1; }
.why__card p { margin-top: .5rem; color: color-mix(in srgb, #f4f1e4 82%, transparent); }
.why__list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.why__list li { display: flex; gap: .6rem; align-items: flex-start; }
.why__list svg { width: 20px; height: 20px; color: var(--gold-soft); flex: 0 0 auto; margin-top: 4px; }

.cta-band { background: var(--surface); border-block: 1px solid var(--line); }
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signup__copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.signup__copy p { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; }
.signup__free { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--olive); }
.signup__free svg { width: 20px; height: 20px; }

form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 20%, transparent); }
/* A keyboard ring for links and buttons, in the colour of the text around them so it reads on the dark hero and the light page alike. */
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.field--error input { border-color: var(--danger); }
.err { display: none; color: var(--danger); font-size: .82rem; margin-top: .35rem; font-weight: 600; }
.field--error .err { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .5rem; text-align: center; }

.success { display: none; text-align: center; padding: 1rem .5rem; }
.success svg { width: 54px; height: 54px; color: #1faf54; }
.success h3 { margin-top: .6rem; font-size: 1.4rem; }
.success p { margin-top: .5rem; color: var(--muted); }
.success__box { margin-top: 1rem; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; font-size: .9rem; white-space: pre-line; }
.is-done form > *:not(.success) { display: none; }
.is-done .success { display: block; }

footer { background: var(--olive-hero); color: color-mix(in srgb, #f4f1e4 78%, transparent); padding-block: 2.5rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer__row a { color: var(--gold-soft); text-decoration: none; }
/* Footer brand stays light against the dark footer (replaces former inline colors). */
.footer__row .brand, .footer__row .brand__name { color: #f4f1e4; }
.footer__note { width: 100%; font-size: .8rem; opacity: .7; margin-top: 1.2rem; border-top: 1px solid color-mix(in srgb, #f4f1e4 15%, transparent); padding-top: 1rem; }

/* ---- language switcher (POS landing) ---- */
.topbar__end { display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; gap: .2rem; font-size: .85rem; font-weight: 700; }
.langs a { padding: .3rem .55rem; border-radius: 999px; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--gold) 18%, transparent); }
/* ---- product screenshots (POS landing) ---- */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: .6rem .9rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot--slip { max-width: 280px; margin-inline: auto; }
.shot--slip img { max-height: 620px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.report-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.report-row + .report-row { margin-top: clamp(2.5rem, 6vw, 4rem); }
.report-row--flip > :first-child { order: 2; }
.report-row h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.report-row p { margin-top: .6rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.4rem; }
.gallery .shot figcaption strong { display: block; color: var(--ink); font-size: .95rem; }
.note { margin-top: clamp(2rem, 5vw, 3rem); padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; background: var(--surface); color: var(--muted); }
.note strong { color: var(--ink); }
@media (max-width: 860px) {
  .hero__grid, .why, .signup { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .mock { transform: none; max-width: 420px; }
  .report-row { grid-template-columns: 1fr; }
  .report-row--flip > :first-child { order: 0; }
  .topbar .brand__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 560px) { .topbar__end .btn { display: none; } }
