/* Public pages of the apex (home, privacy, disclaimer). Brand: #0A2F26 / #0D1110 / #FCFCFD. No external fonts. */
:root {
  --green: #0a2f26;
  --ink: #0d1110;
  --muted: #4b5754;
  --paper: #fcfcfd;
  --line: #d5dedb;
  --focus: #9fd3c3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  line-height: 1.7;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--green); }
.site-header, main, .site-footer { inline-size: 100%; max-inline-size: 960px; margin-inline: auto; padding-inline: 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; direction: ltr; }
.wordmark { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1; }
.support { font-size: 0.95rem; text-decoration: none; }
.support:hover { text-decoration: underline; }
main { flex: 1; padding-block: 8px 40px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.3; margin-block: 16px 8px; margin-inline: 0; color: var(--green); }

/* Home: the hero and the action card share one centred column. */
.home { max-inline-size: 640px; margin-inline: auto; display: grid; gap: 32px; padding-block: 16px 8px; }
.intro h1 { margin-block: 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); margin-block: 0 16px; margin-inline: 0; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { padding-inline-start: 20px; position: relative; }
.points li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.65em;
  inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--green);
}
.action-card {
  background: var(--green); color: var(--paper); border-radius: 16px;
  padding-block: 24px; padding-inline: 20px; display: grid; gap: 14px; justify-items: stretch; text-align: center;
  box-shadow: 0 8px 24px rgba(10, 47, 38, 0.25);
}
.demo-button {
  display: flex; align-items: center; justify-content: center; min-block-size: 56px;
  background: var(--paper); color: var(--green); text-decoration: none; font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.8rem); padding-block: 14px; padding-inline: 16px; border-radius: 12px; border: 3px solid transparent;
}
.demo-button:hover, .demo-button:focus-visible { border-color: var(--focus); }
.demo-note { margin-block: -6px 6px; margin-inline: 0; font-size: 0.9rem; opacity: 0.85; }

/* Company login: label above, then [input][.suffix] as one LTR field and the button beside it (stacked on mobile). */
.company {
  inline-size: 100%; max-inline-size: 480px; margin-inline: auto; text-align: start;
  border-block-start: 1px solid rgba(252, 252, 253, 0.25); padding-block-start: 20px;
}
.company label { display: block; margin-block-end: 10px; font-size: 1rem; font-weight: 600; }
.company-row { display: flex; flex-direction: column; gap: 10px; }
.company-field {
  display: flex; align-items: stretch; min-inline-size: 0; min-block-size: 48px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.company-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.company-field input {
  flex: 1 1 auto; min-inline-size: 0; inline-size: 100%; border: 0; margin: 0; background: transparent; color: var(--ink);
  padding-block: 0; padding-inline: 12px; font: inherit; font-size: 1rem;
}
.company-field input:focus-visible { outline: none; }
.company-field input[aria-invalid="true"] { background: #fff4f2; }
.suffix {
  flex: 0 0 auto; display: flex; align-items: center; white-space: nowrap;
  padding-inline: 10px 12px; background: #e9efed; color: var(--muted);
  border-inline-start: 1px solid var(--line); font-size: 0.95rem;
}
.company-row button {
  min-block-size: 48px; inline-size: 100%; padding-block: 0; padding-inline: 24px; border-radius: 10px;
  border: 1px solid var(--paper); background: transparent; color: var(--paper);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.company-row button:hover, .company-row button:focus-visible { background: rgba(252, 252, 253, 0.15); }
.error { color: #ffd9d4; margin-block: 8px 0; margin-inline: 0; font-size: 0.9rem; }
.agent-link { color: var(--paper); font-size: 0.9rem; opacity: 0.85; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.site-footer {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding-block: 20px;
  font-size: 0.8rem; color: var(--muted); border-block-start: 1px solid var(--line);
}
.site-footer a { color: var(--muted); }
.legal h1 { margin-block-end: 4px; }
.legal .updated { color: var(--muted); margin-block: 0 20px; margin-inline: 0; font-size: 0.9rem; }
.legal h3 { margin-block: 24px 6px; margin-inline: 0; color: var(--green); }
.legal ul { padding-inline-start: 22px; }
@media (max-width: 359px) {
  .suffix { font-size: 0.85rem; padding-inline: 8px 10px; }
}
@media (min-width: 720px) {
  .action-card { padding: 32px; }
  .company-row { flex-direction: row; align-items: stretch; }
  .company-field { flex: 1 1 auto; }
  .company-row button { inline-size: auto; flex: 0 0 auto; }
}

/* UX-2 H1: the "punch arrives" motif above the headline. Its box is reserved by the SVG's width/height. */
.live-punch { display: block; inline-size: 168px; block-size: 36px; color: var(--green); margin-block-end: 12px; }
.live-punch .lp-ring { opacity: 0; }
.live-punch .lp-ring, .live-punch .lp-tick { transform-box: fill-box; transform-origin: center; }
/* The line grows from the fingerprint (inline-start in RTL = the right edge) towards the tick. */
.live-punch .lp-line { transform-box: fill-box; transform-origin: right center; }

/* Staggered entrance, only when the visitor has not asked for reduced motion. Everything is visible by default;
   only opacity and transform move (no layout shift); the last one ends at 1000ms; nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes zk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes zk-pulse { from { opacity: 0.6; transform: scale(0.7); } to { opacity: 0; transform: scale(1.4); } }
  @keyframes zk-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes zk-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
  .intro h1 { animation: zk-rise 400ms ease-out 0ms both; }
  .intro .lead { animation: zk-rise 400ms ease-out 100ms both; }
  .points li:nth-child(1) { animation: zk-rise 360ms ease-out 200ms both; }
  .points li:nth-child(2) { animation: zk-rise 360ms ease-out 260ms both; }
  .points li:nth-child(3) { animation: zk-rise 360ms ease-out 320ms both; }
  .points li:nth-child(n+4) { animation: zk-rise 360ms ease-out 380ms both; }
  .live-punch .lp-ring { animation: zk-pulse 600ms ease-out 0ms both; }
  .live-punch .lp-line { animation: zk-draw 400ms ease-out 300ms both; }
  .live-punch .lp-tick { animation: zk-pop 300ms ease-out 700ms both; }
}
