/* =========================================================
   ZZPGuard Landing Page — Stylesheet
   ========================================================= */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f2d52;
  --blue:    #1e4d8c;
  --amber:   #ea580c;
  --red:     #dc2626;
  --green:   #15803d;
  --bg:      #f1f5f9;
  --surface: #ffffff;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #e2e8f0;

  --radius:  8px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --max-w:   760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* --- Typography --- */
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--navy); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); }
h3 { font-size: 1.1rem; }
p  { color: var(--text); }

a { color: var(--blue); }

/* --- Layout helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

/* --- Header / Nav --- */
header {
  background: var(--navy);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -.3px;
}

.logo span { color: #60a5fa; }

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  margin-left: 1.5rem;
  transition: color .15s;
}
nav a:hover { color: #ffffff; }

/* --- Hero --- */
#hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1a4070 100%);
  padding: 5rem 0 4.5rem;
  color: #ffffff;
}

#hero .badge {
  display: inline-block;
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

#hero h1 { color: #ffffff; margin-bottom: 1rem; }

#hero .lead {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

/* --- Signup form --- */
.signup-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 500px;
}

.card-heading {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

/* 2-column grid for form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem .75rem;
  margin-bottom: .75rem;
}

.field { display: flex; flex-direction: column; gap: .3rem; }

.signup-card label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--red); }

.signup-card input[type="text"],
.signup-card input[type="email"],
.signup-card select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.signup-card input:focus,
.signup-card select:focus { border-color: var(--blue); }
.signup-card select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }

.btn-primary {
  background: var(--amber);
  color: #ffffff;
  border: none;
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn-primary:hover     { background: #c2410c; }
.btn-primary:active    { transform: scale(.98); }
.btn-primary:disabled  { opacity: .6; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; }

.form-error {
  font-size: .8rem;
  color: var(--red);
  margin-top: .4rem;
}

.signup-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .65rem;
}

/* --- Form success state --- */
.form-success {
  text-align: center;
  padding: 1rem 0 .5rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: .75rem;
}

.form-success p {
  font-weight: 700;
  color: var(--green);
  margin-bottom: .3rem;
}

.form-success small {
  font-size: .82rem;
  color: var(--muted);
}

/* --- Section: Risks --- */
#risks { background: var(--surface); }

#risks .section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

#risks .intro {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.risk-card {
  border: 1.5px solid #fee2e2;
  border-radius: var(--radius);
  padding: 1.4rem;
  background: #fff5f5;
}

.risk-card .icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.risk-card h3 { color: var(--red); margin-bottom: .4rem; }
.risk-card p  { font-size: .9rem; color: var(--muted); }

/* --- Section: Solution --- */
#solution { background: var(--bg); }

#solution .section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}

#solution .intro {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.benefit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.benefit-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.benefit-list strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.benefit-list span   { font-size: .875rem; color: var(--muted); }

/* --- Section: Social proof --- */
#social-proof {
  background: var(--navy);
  text-align: center;
  color: #ffffff;
  padding: 3.5rem 0;
}

#social-proof .counter {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #60a5fa;
  line-height: 1;
}

#social-proof .counter-label {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-top: .4rem;
  margin-bottom: 1.75rem;
}

#social-proof .quotes {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 540px;
  margin: 0 auto;
}

.quote-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .9rem;
  color: #cbd5e1;
}

.quote-item em { display: block; font-size: .8rem; color: #64748b; margin-top: .35rem; font-style: normal; }

/* --- Section: CTA --- */
#cta {
  background: var(--surface);
  text-align: center;
  padding: 4.5rem 0;
}

#cta h2 { margin-bottom: .75rem; }
#cta .lead { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }
#cta .signup-card { margin: 0 auto; }

/* --- Footer --- */
footer {
  background: var(--navy);
  padding: 1.5rem 0;
  color: #64748b;
  font-size: .85rem;
  text-align: center;
}

footer a { color: #64748b; }
footer a:hover { color: #94a3b8; }

/* --- Responsive --- */
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}
