/* POSFIELD public site — the multilingual prototype's ONE stylesheet. System fonts (no font download), logical
   properties (margin-inline, padding-inline, text-align: start) so Arabic RTL and French/English LTR share every rule;
   nothing is mirrored with transforms (the logo is never flipped). */
/* the application's brand tokens (css/posfield-experience.css, the same values) — the public pages and the app are ONE brand */
:root { --pf-navy: #092957; --pf-blue: #168cf4; --pf-blue-strong: #0876df; --pf-ink: #0b2039; --pf-muted: #4d6076; --pf-line: #ccd9e9; --pf-surface-2: #e9f0f9;
  --bg: #ffffff; --surface: var(--pf-surface-2); --text: var(--pf-ink); --muted: var(--pf-muted); --line: var(--pf-line); --brand: var(--pf-blue-strong); --brand-ink: #ffffff; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  /* dark: the page's own colours change (the app's dark values); the brand tokens on :root stay the application's */
  :root:not([data-theme="light"]) { --bg: #071326; --surface: #152c48; --text: #edf5ff; --muted: #a8bad1; --line: #263e5c; --brand: #6fbcff; --brand-ink: #071326; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; }
a { color: var(--brand); }
.shell { max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: 15px; }
.nav, .langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nav { flex: 1 1 auto; }
.nav a, .langs a { color: var(--text); text-decoration: none; padding-block: 6px; }
.nav a[aria-current="page"], .langs a[aria-current="true"] { color: var(--brand); font-weight: 700; }
.langs a { font-size: 14px; color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
main { padding-block: 28px 48px; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.note { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.points { padding-inline-start: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-block: 12px; }
.card ul { padding-inline-start: 20px; margin: 0; }
details.card summary { cursor: pointer; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 8px; border-bottom: 1px solid var(--line); }
td { font-variant-numeric: tabular-nums; }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.foot { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 14px; }
.chooser { text-align: center; }
.choose { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 560px; margin: 24px auto; }
.choose a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface); }
.choose span { color: var(--muted); }
@media (max-width: 640px) { .nav { order: 3; flex-basis: 100%; } }

/* the free trial, only to who never had one (official v58: site/auth.js sets html[data-trial-used]) */
[data-trial-alt] { display: none !important; }
html[data-trial-used] [data-trial-cta] { display: none !important; }
html[data-trial-used] .btn[data-trial-alt] { display: inline-flex !important; }
/* the footer's links (subscription plans, the Team entry, the legal pages) — v58's public footer, kept */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-block: 8px; }
.foot-links a { color: var(--muted); }
.site-team-login { white-space: nowrap; }
/* v58's «back to the top of a long page» (site/back-to-top.js): out of the way until the reader has travelled, clear of
   the phone's own bars — the same rules as site/site.css, in this stylesheet's colours */
.site-to-top {
  position: fixed; inset-block-end: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  z-index: 60; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--brand);
  box-shadow: 0 6px 20px rgba(14, 23, 38, .14); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.site-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.site-to-top:hover { background: var(--surface); }
.site-to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 1024px) { .site-to-top { width: 52px; height: 52px; inset-block-end: 26px; inset-inline-end: 26px; } }
@media (prefers-reduced-motion: reduce) { .site-to-top { transition: none; } }
/* the POSFIELD logo (v58's one map): the blue lockup on a light surface, the white one on a dark surface */
.site-logo-img { display: block; height: 30px; width: auto; }
.pf-brand-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf-brand-on-dark { display: block; } :root:not([data-theme="light"]) .pf-brand-on-light { display: none; } }
:root[data-theme="dark"] .pf-brand-on-dark { display: block; } :root[data-theme="dark"] .pf-brand-on-light { display: none; }
/* v58's owner sign-in (site/auth.js wires it): the Google mark, the label, beside the call to action */
.site-login { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 16px; white-space: nowrap;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 700; }
.site-login:hover { background: var(--surface); }
.site-login svg { flex-shrink: 0; }
.site-login[aria-busy="true"] { opacity: .7; }
/* …and once signed in, the account menu site/auth.js puts in its place */
.site-account { position: relative; z-index: 35; color: var(--text); }
.site-account > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.site-account > summary::-webkit-details-marker { display: none; }
.site-account-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--brand); font-weight: 800; }
.site-account-options { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 215px; max-width: calc(100vw - 24px); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 10px 30px rgba(14, 23, 38, .16); }
.site-account-options strong { display: block; padding: 8px; overflow-wrap: anywhere; font-size: 13px; }
.site-account-options button { display: block; width: 100%; min-height: 44px; padding: 10px; background: transparent; color: var(--text); border: 0; border-radius: 8px; text-align: start; cursor: pointer; font: inherit; }
.site-account-options button:hover { background: var(--surface); }
@media (max-width: 640px) { .site-login span { font-size: 14px; } .site-login { padding-inline: 12px; } }
/* the header in two rows (v58's order): the logo, then the call to action and «Log in» at the end of the FIRST row;
   the navigation and the languages on the second. On a phone «Log in» comes first, beside the logo, the offer below. */
.top .shell > .brand { order: 0; }
.top .shell > [data-trial-cta], .top .shell > [data-trial-alt] { order: 1; margin-inline-start: auto; }
.top .shell > .site-login, .top .shell > .site-account { order: 1; }
.top .shell > .nav { order: 2; }
.top .shell > .langs { order: 3; }
@media (max-width: 640px) {
  .top .shell > .site-login, .top .shell > .site-account { order: 1; margin-inline-start: auto; }
  .top .shell > [data-trial-cta], .top .shell > [data-trial-alt] { order: 2; margin-inline-start: 0; }
  .top .shell > .langs { order: 2; }
  .top .shell > .nav { order: 3; }
  .site-logo-img { height: 24px; }
  .site-login { padding-inline: 10px; gap: 7px; }
}
@media (max-width: 360px) { .site-logo-img { height: 20px; } .site-login span { font-size: 13px; } }
