/* =============================================================================
   ClientZapp marketing website
   Zamorins Solutions Inc.

   One hand-written stylesheet, no build step and no CDN: these pages ship
   inside the same container as the application and must render with nothing
   but nginx. Colours are the brand tokens from the Angular preset
   (frontend/src/app/theme/clientzapp-preset.ts) — navy, gold, warm off-white —
   declared once here as custom properties.

   Cached for seven days by nginx, so bump config/site.php → asset_version
   when this file changes.
   ========================================================================== */

:root {
  --navy-50:  #edf3fe;
  --navy-100: #cadcfc;
  --navy-200: #9fb6ea;
  --navy-400: #4a66b0;
  --navy-500: #27336f;
  --navy-600: #1e2761;
  --navy-700: #182052;
  --navy-900: #0c1030;

  --gold-100: #f5e4bc;
  --gold-400: #d9a441;
  --gold-600: #a47526;

  --ink:      #0b0b0b;
  --body:     #52514e;
  --muted:    #898781;
  --line:     #e1e0d9;
  --line-soft:#f0efeb;
  --surface:  #ffffff;
  --shell:    #f9f9f7;

  --ok:       #006300;
  --warn:     #b07a00;
  --bad:      #d03b3b;

  --radius:   14px;
  --shadow:   0 1px 2px rgba(12, 16, 48, .06), 0 8px 24px rgba(12, 16, 48, .05);
  --wrap:     1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }
a  { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
img, svg { max-width: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lede { font-size: 1.1rem; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.tight { max-width: 74ch; }

/* skip link — first thing in the tab order, hidden until focused */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-600); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--navy-400); outline-offset: 2px; border-radius: 6px;
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }

/* One image now (site/images/clientzapp-logo*.svg), sized by height: the
   artwork is 320x90, so width must stay auto or the wordmark distorts. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .mark { display: block; height: 34px; width: auto; }
@media (max-width: 900px) { .brand .mark { height: 30px; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--body); text-decoration: none; font-size: .925rem; font-weight: 550;
}
.nav a:hover { background: var(--shell); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--navy-600); background: var(--navy-50); }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile menu: a checkbox, so the header needs no JavaScript at all. The
   checkbox is hidden from sight but not from the keyboard — clipping it rather
   than display:none keeps it focusable and tabbable. */
.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-toggle-label { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav-toggle-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; background: #fff;
  }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--navy-400); outline-offset: 2px; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -5px; }
  .nav-toggle-label span::after  { position: absolute; top: 5px; }

  /* Closed by default on small screens; the checkbox reveals both groups. */
  .nav, .header-cta { display: none; }
  .nav { flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: 2px; }
  .nav a { padding: 11px 12px; }
  .header-cta { width: 100%; }
  .header-cta .btn { flex: 1; justify-content: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .header-cta { display: flex; }
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 650; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--shell); color: var(--ink); border-color: var(--muted); }
.btn-gold { background: var(--gold-400); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }

/* ---- sections ---------------------------------------------------------- */

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-shell { background: var(--shell); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy-600); color: var(--navy-100); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: .6rem;
}
.section-navy .eyebrow { color: var(--gold-400); }

/* ---- hero -------------------------------------------------------------- */

.hero { padding: 80px 0 64px; background: linear-gradient(180deg, var(--navy-50) 0%, #fff 78%); }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.2rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: .875rem; color: var(--muted); margin-top: 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 40px; } }

/* a small, honest mock of the product, drawn in CSS */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--shell); border-bottom: 1px solid var(--line); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-title { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--shell); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.mock-kpi .label { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mock-kpi .val { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line-soft); font-size: .84rem; }
.mock-row .name { font-weight: 650; color: var(--ink); }
.mock-row .grow { flex: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--line-soft); color: var(--body);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-healthy { background: #e8f3e8; color: var(--ok); }
.badge-cooling { background: #fdf3dd; color: var(--warn); }
.badge-risk    { background: #fbe9e9; color: var(--bad); }
.badge-plain::before { display: none; }

/* ---- cards & grids ----------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; height: 100%;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card-shell { background: var(--shell); }
.card-quiet { border-color: var(--line-soft); }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  background: var(--navy-50); color: var(--navy-600);
  font-size: 1.05rem; font-weight: 800;
}
.icon-gold { background: #fbf4e4; color: var(--gold-600); }

/* ---- checklists -------------------------------------------------------- */

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: .5rem; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.checks-navy li::before { border-color: var(--gold-400); }
.crosses { list-style: none; padding: 0; margin: 0; }
.crosses li { position: relative; padding-left: 26px; margin-bottom: .5rem; color: var(--muted); }
.crosses li::before { content: "—"; position: absolute; left: 4px; color: var(--muted); font-weight: 700; }

/* ---- pricing ----------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.plan-featured { border-color: var(--navy-600); border-width: 2px; box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--gold-400); color: var(--navy-900);
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .2rem; }
.plan .blurb { font-size: .9rem; color: var(--muted); min-height: 2.8em; margin-bottom: 1rem; }
.price { display: flex; align-items: baseline; gap: 5px; margin-bottom: .2rem; }
.price .amount { font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price .per { font-size: .85rem; color: var(--muted); font-weight: 550; }
.price-note { font-size: .82rem; color: var(--muted); margin-bottom: 1.25rem; }
.plan .btn { width: 100%; justify-content: center; margin-bottom: 1.25rem; }
.plan .checks li { font-size: .92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.compare th, table.compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
table.compare thead th { background: var(--shell); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.compare tbody th { font-weight: 600; color: var(--ink); }
table.compare td { text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 800; }
.no  { color: var(--line); font-weight: 800; }

/* ---- quotes / testimonials -------------------------------------------- */

blockquote.story { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold-400); border-radius: var(--radius); padding: 24px; }
blockquote.story p { font-size: 1.02rem; color: var(--ink); }
blockquote.story footer { font-size: .875rem; color: var(--muted); }
blockquote.story footer strong { display: block; color: var(--ink); }

/* ---- FAQ / help -------------------------------------------------------- */

details.qa { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 10px; background: #fff; }
details.qa > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 650; color: var(--ink); list-style: none;
  display: flex; align-items: center; gap: 12px;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; color: var(--muted); font-weight: 400; line-height: 1; }
details.qa[open] > summary::after { content: "–"; }
details.qa[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.qa .qa-body { padding: 15px 18px; }
details.qa .qa-body > :last-child { margin-bottom: 0; }

/* ---- status ------------------------------------------------------------ */

.status-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #e8f3e8; border: 1px solid #bcd9bc; border-radius: var(--radius); padding: 18px 22px;
}
.status-banner .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); flex: none; }
.status-banner strong { font-size: 1.05rem; color: #044804; }
.status-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); margin: 0; }
.status-list li:last-child { border-bottom: 0; }
.status-list .name { font-weight: 600; color: var(--ink); flex: 1; }

/* ---- legal / prose pages ---------------------------------------------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose li { margin-bottom: .45rem; }
.updated { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

.page-head { padding: 52px 0 28px; border-bottom: 1px solid var(--line); background: var(--shell); }
.page-head h1 { margin-bottom: .35rem; }
.page-head .lede { margin-bottom: 0; }

/* ---- call to action band ---------------------------------------------- */

.cta-band { background: var(--navy-600); color: var(--navy-100); padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: var(--navy-100); margin-bottom: 1.5rem; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- footer ------------------------------------------------------------ */

.site-footer { background: var(--navy-900); color: #b9c0d8; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #b9c0d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand .brand .mark { height: 30px; }
.footer-brand p { max-width: 34ch; color: #9aa2be; }

.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }

.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between;
  font-size: .875rem; color: #8f97b4;
}
.footer-bottom .email a { color: #fff; }

@media print {
  .site-header, .site-footer, .cta-band, .skip { display: none; }
  body { font-size: 11pt; }
}
