/* Softwiro Production — landing page
   Tokens are drawn from the live app: blue gradient (#1565C0 → #42A5F5)
   from the login screen, plus the green/amber status colors already used
   in the app's own stage-status view. */

:root {
  --paper: #f1eee8;
  --paper-raised: #e9e4da;
  --ink: #171b1f;
  --ink-soft: #4b535b;
  --ink-faint: #7a828a;
  --line: #dbd5c8;

  --blue-deep: #1565c0;
  --blue-bright: #42a5f5;
  --amber: #e0993a;
  --amber-soft: #f3e2c4;
  --green: #2f8558;
  --green-soft: #d9ead9;

  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --measure: 62ch;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.2; }

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  margin-bottom: 40px;
}

p { color: var(--ink-soft); max-width: var(--measure); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
}
.btn-primary:hover { background: #0f52a0; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-faint); }

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-on-dark {
  background: #fff;
  color: var(--blue-deep);
}
.btn-on-dark:hover { background: #eef5fd; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 238, 232, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-inline-end: auto;
}

.brand-mark { border-radius: 8px; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-suffix { font-weight: 400; color: var(--ink-soft); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--blue-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
}

/* Hero */

.hero { padding-block: 64px 88px; }

.hero-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero-lede {
  margin-top: 22px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero stage-strip diagram — a literal production line, not a device mockup */

.hero-diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 28px 28px;
}

.stage-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.stage.is-done:not(:last-child)::after { background: var(--green); }

.stage-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.stage.is-done .stage-dot {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.stage.is-active .stage-dot {
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 153, 58, 0.45), 0 0 0 1px var(--amber); }
  50% { box-shadow: 0 0 0 8px rgba(224, 153, 58, 0), 0 0 0 1px var(--amber); }
}

.stage-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.stage.is-active .stage-label { color: var(--ink); }

.stage-caption {
  margin: 28px 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
  max-width: none;
}

/* Roles */

.roles { padding-block: 24px 88px; }

.role-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.role-panel {
  background: #fff;
  padding: 36px 32px;
}

.role-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.role-panel > p {
  margin: 0 0 22px;
  max-width: none;
}

.role-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-panel li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.role-panel li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.role-admin li::before { background: var(--blue-deep); }
.role-worker li::before { background: var(--amber); }

/* Features — a divided list, deliberately not a grid of identical shadow cards */

.features { padding-block: 24px 96px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.feature {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  position: relative;
}

.feature-tick {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.tick-blue { background: var(--blue-deep); }
.tick-amber { background: var(--amber); }
.tick-green { background: var(--green); }

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p { margin: 0; font-size: 0.95rem; }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-bright));
  padding-block: 72px;
}

.cta-band-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-band h2 { color: #fff; margin-bottom: 0; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: none; margin: 0; }
.cta-band .btn { margin-top: 12px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-tag, .footer-copy {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0;
  max-width: none;
}

.footer-copy { margin-inline-start: auto; }

/* Responsive */

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-diagram { order: -1; }
  .role-panels { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .site-header.is-open .site-nav .btn { margin-top: 4px; }

  .stage-label { font-size: 0.72rem; }
  .footer-copy { margin-inline-start: 0; }
}
