/* ============================================================
   Facely design system — v4
   Light, minimal, professional. Green identity from the
   shutter-face logo: leaf #63c04f → forest #156b2f, deep
   forest #0c2015 for dark bands.
   Radius rule: cards 18px · inputs 10px · buttons pill
   Type: Outfit
   ============================================================ */

:root {
  --bg: #fbfbf9;
  --bg-card: #ffffff;
  --bg-tint: #eef5ef;
  --ink: #10231a;
  --ink-2: #4e6156;
  --ink-3: #83938a;
  --border: rgba(16, 35, 26, 0.10);
  --border-strong: rgba(16, 35, 26, 0.18);
  --green: #1d7f3f;
  --green-hover: #176a34;
  --green-dark: #14532d;
  --green-bright: #63c04f;
  --green-soft: rgba(29, 127, 63, 0.09);
  --green-line: rgba(29, 127, 63, 0.35);
  --grad: linear-gradient(135deg, #63c04f 0%, #2e9540 55%, #156b2f 100%);
  --forest: #0c2015;
  --forest-raised: #12301f;
  --on-forest: #eaf4ec;
  --on-forest-2: #a9c9b1;
  --red: #c2402f;
  --r-card: 18px;
  --r-input: 10px;
  --shadow-card: 0 1px 2px rgba(16, 35, 26, 0.05), 0 16px 40px -20px rgba(16, 35, 26, 0.22);
  --shadow-pop: 0 24px 70px -28px rgba(16, 35, 26, 0.38);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, button { font-size: inherit; }

::selection { background: var(--green-bright); color: #08240f; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
.display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
h1.display { font-size: clamp(2.7rem, 5.4vw, 4.3rem); font-weight: 800; }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.sub {
  color: var(--ink-2);
  font-size: 1.09rem;
  line-height: 1.65;
  max-width: 34rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn-green {
  background: var(--green);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 10px 24px -12px rgba(29, 127, 63, 0.55);
}
.btn-green:hover { background: var(--green-hover); box-shadow: 0 14px 28px -12px rgba(29, 127, 63, 0.6); transform: translateY(-1px); }

.btn-green.btn-sm { padding: 9px 20px; font-size: 0.9rem; box-shadow: none; }
.btn-green.btn-sm:hover { transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 13px 26px;
  font-size: 1rem;
}
.btn-ghost:hover { border-color: var(--green-line); color: var(--green-dark); }

.btn-white {
  background: #ffffff;
  color: var(--green-dark);
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 14px 34px -14px rgba(6, 16, 10, 0.55);
}
.btn-white:hover { background: #eef5ef; transform: translateY(-1px); }

.btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 13px 26px;
  font-size: 1rem;
}
.btn-ghost-light:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- nav (dark glass, sits on green hero) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 68px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 26, 17, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  background: rgba(10, 26, 17, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px -18px rgba(8, 18, 12, 0.6);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .logo { color: #ffffff; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(234, 244, 236, 0.82);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: #ffffff; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--green-dark);
}
.logo img, .logo svg { flex-shrink: 0; }
.logo.on-dark { color: #ffffff; }

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field .hint {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 6px;
}
.form-error {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---------- spinner ---------- */
.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2.5px solid var(--green-line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- footer (forest) ---------- */
.footer {
  background: var(--forest);
  color: var(--on-forest-2);
  padding: 72px 0 40px;
  font-size: 0.92rem;
}
.footer a { color: var(--on-forest-2); transition: color 0.15s ease; }
.footer a:hover { color: var(--green-bright); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  text-align: left;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; max-width: 26ch; line-height: 1.6; }
.footer-col h4 {
  color: var(--on-forest);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-bottom {
  border-top: 1px solid rgba(234, 244, 236, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(169, 201, 177, 0.75);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 130px 24px 90px; }
.legal h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.legal .updated { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--green); }
