/* ==========================================================================
   PrestaShop Security Engine — Commercial site
   Visual system matched to the module BO dashboard (dashboard.css /
   security-dashboard.css): system fonts, blue primary, gray chrome, cards.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --psas-red:    #e74c3c;
  --psas-amber:  #f39c12;
  --psas-green:  #2ecc71;
  --psas-blue:   #2563eb;
  --psas-blue-hover: #1d4ed8;
  --psas-gray:   #6b7280;
  --psas-border: #e5e7eb;
  --psas-bg:     #f4f6f8;
  --psas-white:  #ffffff;
  --psas-text:   #111827;
  --psas-radius: 10px;
  --psas-radius-sm: 6px;
  --psas-shadow: 0 1px 6px rgba(0,0,0,.07);
  --psas-space-xs: 8px;
  --psas-space-sm: 12px;
  --psas-space-md: 16px;
  --psas-space-lg: 24px;
  --psas-space-xl: 32px;
  --max: 1120px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--psas-text);
  background: var(--psas-bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--psas-blue); text-decoration: none; }
a:hover { color: var(--psas-blue-hover); text-decoration: underline; }
h1, h2, h3, h4 {
  margin: 0 0 0.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--psas-text);
}
p { margin: 0 0 1rem; color: var(--psas-text); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--psas-text); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Site header (module topbar language) ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--psas-white);
  border-bottom: 1px solid var(--psas-border);
  box-shadow: var(--psas-shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; padding: 10px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--psas-text); text-decoration: none; font-weight: 700;
}
.brand:hover { text-decoration: none; color: var(--psas-text); }
.brand img { height: 40px; width: auto; max-width: 44px; object-fit: contain; }
.brand span { font-size: 16px; display: block; line-height: 1.2; }
.brand small {
  display: block; font-size: 12px; font-weight: 400; color: var(--psas-gray); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 4px;
  background: var(--psas-bg); border: 1px solid var(--psas-border); border-radius: 8px;
}
.nav-links a {
  display: inline-block; padding: 7px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--psas-gray); text-decoration: none;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--psas-white); color: var(--psas-text); text-decoration: none; }
.nav-links a[aria-current="page"] {
  background: var(--psas-white); color: var(--psas-blue); font-weight: 600;
  box-shadow: var(--psas-shadow);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none; border: 1.5px solid var(--psas-border); background: var(--psas-white);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 13px;
  color: var(--psas-text); font-family: inherit;
}

/* ── Buttons (psas-btn) ───────────────────────────────────────────────── */
.btn, .psas-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all .15s;
  border: 1.5px solid transparent; font-family: inherit; line-height: 1.2;
}
.btn:hover, .psas-btn:hover { text-decoration: none; }
.btn:focus-visible, .psas-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px;
}
.btn-primary, .psas-btn--primary, .btn-teal {
  background: var(--psas-blue); color: #fff; border-color: var(--psas-blue);
}
.btn-primary:hover, .psas-btn--primary:hover, .btn-teal:hover {
  background: var(--psas-blue-hover); border-color: var(--psas-blue-hover); color: #fff;
}
.btn-secondary, .psas-btn--ghost {
  background: var(--psas-white); color: var(--psas-text); border-color: var(--psas-border);
}
.btn-secondary:hover, .psas-btn--ghost:hover {
  background: var(--psas-bg); border-color: #9ca3af; color: var(--psas-text);
}
.btn-lg { padding: 12px 22px; font-size: 14.5px; }
.btn-google {
  background: var(--psas-white);
  color: var(--psas-text);
  border-color: var(--psas-border);
  box-shadow: var(--psas-shadow);
}
.btn-google:hover {
  background: var(--psas-bg);
  border-color: #9ca3af;
  color: var(--psas-text);
  text-decoration: none;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  color: var(--psas-gray);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--psas-border);
}
.auth-divider span { white-space: nowrap; }
.btn:active, .psas-btn:active { transform: scale(.97); }

/* ── Pills ────────────────────────────────────────────────────────────── */
.psas-pill, .pill {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.psas-pill--green, .pill { background: #dcfce7; color: #15803d; }
.psas-pill--amber { background: #fef3c7; color: #b45309; }
.psas-pill--blue { background: #dbeafe; color: #1d4ed8; }
.psas-pill--red { background: #fee2e2; color: #b91c1c; }

/* ── Alerts ───────────────────────────────────────────────────────────── */
.alert, .psas-alert {
  padding: 13px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
  border: 1px solid var(--psas-border); background: var(--psas-white);
}
.alert-error, .psas-alert--error {
  background: #fef2f2; border-color: #fecaca; color: #991b1b;
}
.alert-success, .psas-alert--success {
  background: #f0fdf4; border-color: #bbf7d0; color: #166534;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.section-kicker {
  color: var(--psas-blue); font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}
.hero-brand {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--psas-text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.hero h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--psas-gray);
  margin-bottom: 12px;
}
.hero-lead { font-size: 15px; color: var(--psas-gray); max-width: 36rem; }
.hero-price-line {
  margin: 24px 0 0;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  line-height: 1;
  color: var(--psas-text);
}
.hero-price-line span {
  display: inline;
  font-size: 0.46em;
  font-weight: 600;
  color: var(--psas-blue);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-meta { margin-top: 16px; color: var(--psas-gray); font-size: 13px; }

/* Minimal landing */
.hero--minimal {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 72px 0 96px;
  min-height: calc(100vh - 72px - 120px);
  align-content: center;
}
.hero--minimal .hero-inner { max-width: 34rem; }
.hero--minimal .hero-lead { margin-inline: auto; }
.hero--minimal .hero-price-line { margin-top: 24px; }
.hero--minimal .hero-actions { justify-content: center; }
.hero--minimal .hero-meta { margin-top: 20px; }

/* ── Dashboard mock (real module UI language — light) ─────────────────── */
.dash-mock {
  background: var(--psas-white);
  border: 1px solid var(--psas-border);
  border-radius: var(--psas-radius);
  box-shadow: var(--psas-shadow);
  overflow: hidden;
}
.dash-mock__top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--psas-border);
  background: var(--psas-bg);
}
.dash-mock__brand {
  display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; color: var(--psas-text);
}
.dash-mock__brand img { height: 28px; width: auto; }
.dash-mock__brand i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--psas-green); display: inline-block;
}
.dash-mock__tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: var(--psas-white);
  border: 1px solid var(--psas-border); border-radius: 8px; }
.dash-mock__tabs span {
  padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--psas-gray); font-weight: 500;
}
.dash-mock__tabs span.is-active {
  background: var(--psas-bg); color: var(--psas-blue); font-weight: 600; box-shadow: var(--psas-shadow);
}
.dash-mock__body { padding: 16px; }
.dash-banner {
  padding: 12px 16px; margin-bottom: 16px; border-radius: var(--psas-radius-sm);
  background: var(--psas-white); border: 1px solid var(--psas-border); border-left: 4px solid var(--psas-green);
  font-size: 13px; color: var(--psas-text);
}
.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.dash-card {
  background: var(--psas-white); border: 1px solid var(--psas-border); border-top-width: 3px;
  border-radius: var(--psas-radius-sm); padding: 12px 14px; min-height: 78px;
}
.dash-card strong {
  display: block; font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 4px; color: var(--psas-text); line-height: 1.1;
}
.dash-card span {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--psas-gray);
}
.dash-card--ok { border-top-color: var(--psas-green); }
.dash-card--warn { border-top-color: var(--psas-amber); }
.dash-card--danger { border-top-color: var(--psas-red); }
.dash-section {
  background: var(--psas-bg); border: 1px solid var(--psas-border); border-radius: var(--psas-radius);
  padding: 14px 16px;
}
.dash-section-title {
  font-size: 13px; font-weight: 600; color: var(--psas-text); margin: 0 0 10px;
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-table th, .dash-table td {
  text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--psas-border); color: var(--psas-text);
}
.dash-table th { color: var(--psas-gray); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 40px 0; }
.section-alt {
  background: var(--psas-white);
  border-block: 1px solid var(--psas-border);
}
.section-head { max-width: 40rem; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.section-head p { color: var(--psas-gray); font-size: 15px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature {
  background: var(--psas-white); border: 1px solid var(--psas-border); border-radius: var(--psas-radius);
  padding: 18px 18px 16px; box-shadow: var(--psas-shadow);
}
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { color: var(--psas-gray); margin: 0; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--psas-white); border: 1px solid var(--psas-border); border-radius: var(--psas-radius);
  padding: 18px; box-shadow: var(--psas-shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 12px;
  background: var(--psas-blue); color: #fff; font-weight: 700; font-size: 13px;
}
.step h3 { font-size: 15px; }
.step p { color: var(--psas-gray); font-size: 14px; margin: 0; }

.problem-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  list-style: none; padding: 0; margin: 0;
}
.problem-list li {
  background: var(--psas-white); border: 1px solid var(--psas-border); border-left: 4px solid var(--psas-blue);
  border-radius: var(--psas-radius-sm); padding: 12px 14px; color: var(--psas-text); font-size: 14px;
}

.price-panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  background: var(--psas-white); color: var(--psas-text);
  border: 1px solid var(--psas-border); border-radius: var(--psas-radius);
  padding: 28px; box-shadow: var(--psas-shadow);
}
.price-panel h2 { color: var(--psas-text); font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.price-panel p { color: var(--psas-gray); }
.price-panel .section-kicker { color: var(--psas-blue); }
.price-panel__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.price-amount {
  font-size: 2.75rem; font-weight: 700; line-height: 1; margin: .35rem 0 14px; color: var(--psas-text);
  letter-spacing: -0.03em;
}
.price-amount small { font-size: 14px; color: var(--psas-gray); font-weight: 500; }
.price-note { font-size: 13px; color: var(--psas-gray); }
.price-note a { font-weight: 600; }
.include-list {
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 720px) {
  .include-list { columns: 1; }
}

.prose {
  max-width: none;
}
/* Fill the parent container; never override .container when both share one element */
.container > .prose {
  width: 100%;
}
.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}
.prose p,
.prose li {
  color: var(--psas-gray);
}
.prose p {
  max-width: none;
}
.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--psas-gray);
}
.prose li {
  margin-bottom: .45rem;
  padding-left: .15rem;
}
.prose ol {
  list-style-position: outside;
}

.page-hero {
  padding: 32px 0 12px;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.page-hero p {
  color: var(--psas-gray);
  font-size: 15px;
  max-width: none;
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.doc-toc a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--psas-gray);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--psas-border);
  border-radius: 8px;
  background: var(--psas-white);
}
.doc-toc a:hover {
  color: var(--psas-blue);
  border-color: #bfdbfe;
  background: #eff6ff;
  text-decoration: none;
}

.faq details {
  background: var(--psas-white); border: 1px solid var(--psas-border); border-radius: var(--psas-radius-sm);
  padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--psas-shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; font-size: 14px;
  display: flex; justify-content: space-between; gap: 1rem; color: var(--psas-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--psas-blue); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--psas-gray); margin: .7rem 0 0; font-size: 14px; }

.form { display: grid; gap: 12px; max-width: 32rem; }
.form label { font-weight: 600; display: grid; gap: 6px; font-size: 13px; }
.form input, .form textarea, .form select {
  border: 1px solid var(--psas-border); border-radius: 8px; padding: 10px 12px;
  font: inherit; background: var(--psas-white); color: var(--psas-text);
}
.form input:focus, .form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .2); border-color: var(--psas-blue);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px; background: var(--psas-white); color: var(--psas-gray);
  padding: 36px 0 24px; border-top: 1px solid var(--psas-border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
}
.site-footer a { color: var(--psas-text); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--psas-blue); }
.site-footer h3 { color: var(--psas-text); font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
  color: var(--psas-text); font-weight: 700; font-size: 15px;
}
.footer-brand img { height: 32px; width: auto; }
.footer-copy,
.site-footer .footer-copy {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--psas-border); font-size: 12px;
  text-align: center;
}

/* ── Account / Admin shells ───────────────────────────────────────────── */
.account-shell, .admin-shell { min-height: 100vh; background: var(--psas-bg); }
.account-nav, .admin-nav {
  background: var(--psas-white); color: var(--psas-text); padding: 14px 0;
  border-bottom: 1px solid var(--psas-border); box-shadow: var(--psas-shadow);
}
.account-nav a, .admin-nav a {
  color: var(--psas-gray); text-decoration: none; margin-right: 8px;
  font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 6px;
}
.account-nav a:hover, .admin-nav a:hover {
  background: var(--psas-bg); color: var(--psas-blue); text-decoration: none;
}
.panel {
  background: var(--psas-white); border: 1px solid var(--psas-border);
  border-radius: var(--psas-radius); padding: 18px; margin: 12px 0; box-shadow: var(--psas-shadow);
}
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--psas-border);
}
table.data th { color: var(--psas-gray); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--psas-bg); padding: .2rem .4rem; border-radius: 6px; font-size: .85rem;
  border: 1px solid var(--psas-border);
}

@media (max-width: 920px) {
  .hero, .price-panel, .feature-grid, .steps, .footer-grid, .problem-list, .dash-grid {
    grid-template-columns: 1fr;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links, .nav.is-open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; order: 3;
  }
  .nav.is-open .nav-links { margin-top: 4px; }
  .dash-mock__tabs { display: none; }
}
