/* ============================================================
   FAIRLET — shared design system
   Type: Space Grotesk (display) + Hanken Grotesk (body)
   Palette: deep green on white, mint tints, bright green accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* greens */
  --ink:        #0c2018;   /* near-black green for text */
  --green-900:  #0a3324;
  --green-800:  #0d4a32;
  --green-700:  #126245;
  --green-600:  #157a50;   /* primary */
  --green-500:  #1e9460;
  --green-400:  #3bb579;   /* bright accent */
  --green-300:  #8fd6b2;
  --mint-200:   #cfe7d8;
  --mint-100:   #e3f1e9;
  --mint-50:    #eef6f1;
  --paper:      #f7faf8;
  --white:      #ffffff;

  --line:       #d8e6dd;   /* hairline border */
  --line-soft:  #e7f0ea;
  --muted:      #5b6f66;   /* secondary text */

  --shadow-sm: 0 1px 2px rgba(12,32,24,.05), 0 2px 8px rgba(12,32,24,.04);
  --shadow-md: 0 6px 24px rgba(12,32,24,.08), 0 2px 6px rgba(12,32,24,.04);
  --shadow-lg: 0 24px 60px rgba(12,32,24,.12), 0 8px 20px rgba(12,32,24,.06);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green-300); color: var(--green-900); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.bg-mint { background: var(--mint-50); }
.bg-ink  { background: var(--green-900); color: #e8f3ed; }
.bg-paper { background: var(--paper); }

/* ---------- typography ---------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.display {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.025em; text-wrap: balance; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); line-height: 1.5; text-wrap: pretty; max-width: 44ch; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--green-400);
}
.eyebrow--center { justify-content: center; }
.green { color: var(--green-600); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 18px rgba(21,122,80,.28); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21,122,80,.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-400); background: var(--mint-50); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.08rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,250,248,.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green-600);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
  flex: none;
}
.brand .mark span { display:block; width: 11px; height: 11px; border-radius: 3px; background: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.nlink {
  font-family: var(--display); font-weight: 500; font-size: .98rem;
  padding: .55em .85em; border-radius: var(--r-pill); color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav-links a.nlink:hover { background: var(--mint-100); color: var(--green-800); }
.nav-links a.nlink.active { color: var(--green-700); background: var(--mint-100); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* mobile nav */
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content:''; display:block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-mobile-cta { display: none; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 4px; padding: 12px var(--gut) 24px;
    border-bottom: 1px solid var(--line-soft); background: var(--paper);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-family: var(--display); font-weight: 500; padding: .8em .4em; border-radius: 10px; }
  .mobile-menu a:hover { background: var(--mint-100); }
  .mobile-menu .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em .9em; border-radius: var(--r-pill);
  background: var(--mint-100); color: var(--green-800);
  font-family: var(--display); font-weight: 500; font-size: .85rem;
  border: 1px solid var(--mint-200);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mint-200); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--mint-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 20px;
  border: 1px solid var(--mint-200);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--solid { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* ---------- image placeholder ---------- */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-color: var(--mint-50);
  background-image: repeating-linear-gradient(135deg, rgba(21,122,80,.07) 0, rgba(21,122,80,.07) 1px, transparent 1px, transparent 11px);
  border: 1px solid var(--mint-200);
  display: grid; place-items: center; min-height: 200px;
}
.ph::after {
  content: attr(data-label);
  font-family: 'Space Grotesk', monospace; font-size: .8rem; letter-spacing: .06em;
  color: var(--green-700); background: rgba(255,255,255,.8); padding: .5em .85em; border-radius: var(--r-pill);
  border: 1px dashed var(--green-300);
}

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
/* "how it works" sections — give the product screenshot more room on desktop */
@media (min-width: 760px) { .hiw-left { grid-template-columns: 1.22fr 1fr; } .hiw-right { grid-template-columns: 1fr 1.22fr; } }

/* ---------- section header ---------- */
.sec-head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .lede { max-width: 60ch; }
.sec-head.center .lede { margin-inline: auto; }

/* ---------- stat ---------- */
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem,4vw,3.4rem); letter-spacing: -.03em; color: var(--green-700); line-height: 1; }
.stat-label { color: var(--muted); font-size: .98rem; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: #cfe3d8; padding-block: clamp(56px, 7vw, 88px) 36px; }
.site-footer a { color: #cfe3d8; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-300); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: var(--green-300); }
.brand--light { color: #fff; }
.brand--light .mark { background: var(--green-400); }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--r-xl); color: #fff; padding: clamp(40px, 6vw, 76px);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content:''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.cta-band::after {
  content:''; position: absolute; left: -60px; bottom: -120px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.cta-band .h2, .cta-band p { position: relative; z-index: 1; color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.85); }

/* ---------- list with checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-100);
  color: var(--green-600); display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--mint-200);
}
.check-list .tick svg { width: 14px; height: 14px; }
.check-list strong { font-family: var(--display); font-weight: 600; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- video placeholder ---------- */
.video-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/9;
  background: var(--green-900);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 14px);
  border: 1px solid var(--green-800); display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.video-frame .play {
  width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.video-frame .play:hover { transform: scale(1.07); }
.video-frame .play .tri { width: 0; height: 0; border-left: 22px solid var(--green-700); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video-frame .vlabel {
  position: absolute; bottom: 18px; left: 18px; font-family: 'Space Grotesk', monospace; font-size: .78rem;
  color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); padding: .45em .8em; border-radius: var(--r-pill); letter-spacing: .04em;
}
.video-frame .badge-top { position: absolute; top: 18px; left: 18px; }

/* ---------- hero shared ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.avatars { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.avatars .stack { display: flex; }
.avatars .stack span {
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--paper);
  margin-left: -12px; background: var(--mint-200);
  background-image: repeating-linear-gradient(135deg, rgba(21,122,80,.18) 0, rgba(21,122,80,.18) 1px, transparent 1px, transparent 6px);
}
.avatars .stack span:first-child { margin-left: 0; }
.avatars .a-text { font-size: .95rem; color: var(--muted); }
.avatars .a-text strong { color: var(--ink); font-family: var(--display); }

/* float card on hero image */
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-md); padding: 16px 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: center;
}

/* number step */
.step-num { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--green-500); letter-spacing: .04em; }
.step-rule { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--display); font-weight: 500; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .85em 1em; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #9bb0a6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(30,148,96,.14);
}
.textarea { resize: vertical; min-height: 110px; }
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23157a50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* role selector */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }
.role-card {
  position: relative; text-align: left; cursor: pointer; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .18s ease, background .18s ease, transform .18s ease;
  font-family: inherit;
}
.role-card:hover { border-color: var(--green-300); transform: translateY(-2px); }
.role-card .r-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; border: 1px solid var(--mint-200); transition: .18s; }
.role-card .r-ico svg { width: 22px; height: 22px; }
.role-card .r-title { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.role-card .r-sub { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.role-card .r-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: .18s; }
.role-card .r-check svg { width: 13px; height: 13px; opacity: 0; transition: .18s; color: #fff; }
.role-card[aria-pressed="true"] { border-color: var(--green-600); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(21,122,80,.1); }
.role-card[aria-pressed="true"] .r-ico { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.role-card[aria-pressed="true"] .r-check { background: var(--green-600); border-color: var(--green-600); }
.role-card[aria-pressed="true"] .r-check svg { opacity: 1; }

/* conditional groups */
.fieldset-group { display: none; flex-direction: column; gap: 18px; }
.fieldset-group.active { display: flex; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.group-label { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); display: flex; align-items: center; gap: 10px; }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* success */
.success-state { display: none; text-align: center; padding: clamp(28px,4vw,48px) 0; }
.success-state.show { display: block; animation: fadeUp .5s ease both; }
.success-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--mint-100); border: 1px solid var(--mint-200); display: grid; place-items: center; margin: 0 auto 24px; }
.success-ring svg { width: 40px; height: 40px; color: var(--green-600); }

.form-error { display: none; color: #b42318; font-size: .85rem; }
.field.invalid .input, .field.invalid .select { border-color: #e5685c; box-shadow: 0 0 0 4px rgba(229,104,92,.12); }
.field.invalid .form-error { display: block; }
