/* ==========================================================================
   Peoplo shared template stylesheet
   Design tokens + components common to every Peoplo marketing page:
   nav, buttons, theme toggle, section shell, footer, FAQ, steps, badges,
   dark CTA band, module cards. Page-specific layout stays in each page's
   own <style> block.
   ========================================================================== */

:root,
:root[data-theme="light"] {
  --ink: #101828;
  --ink-soft: #4b5461;
  --paper: #f6f7f3;
  --paper-raised: #ffffff;
  --line: #e1e4de;
  --line-strong: #c9cdc5;
  --teal: #0cbfb8;
  --teal-deep: #077e78;
  --teal-tint: #e1f7f5;
  --amber: #e7a33e;
  --amber-tint: #fbf1df;
  --red-tint: #fbeeec;
  --red: #b4432e;
  --contrast-bg: #101828;
  --radius: 10px;
  --maxw: 1120px;
  --nav-bg: rgba(246, 247, 243, 0.85);
  --amber-badge-border: #f0dcae;
  --amber-badge-text: #8a5a0f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceff3;
    --ink-soft: #98a2ae;
    --paper: #0e1116;
    --paper-raised: #161b22;
    --line: #262d36;
    --line-strong: #38414c;
    --teal: #1dd9ce;
    --teal-deep: #5feee3;
    --teal-tint: #0e2e2b;
    --amber: #f0b429;
    --amber-tint: #2a2013;
    --red-tint: #2e1815;
    --red: #e9705a;
    --contrast-bg: #1a2431;
    --nav-bg: rgba(14, 17, 22, 0.85);
    --amber-badge-border: #4a3a1e;
    --amber-badge-text: #f5c876;
  }
}
:root[data-theme="dark"] {
  --ink: #eceff3;
  --ink-soft: #98a2ae;
  --paper: #0e1116;
  --paper-raised: #161b22;
  --line: #262d36;
  --line-strong: #38414c;
  --teal: #1dd9ce;
  --teal-deep: #5feee3;
  --teal-tint: #0e2e2b;
  --amber: #f0b429;
  --amber-tint: #2a2013;
  --red-tint: #2e1815;
  --red: #e9705a;
  --contrast-bg: #1a2431;
  --nav-bg: rgba(14, 17, 22, 0.85);
  --amber-badge-border: #4a3a1e;
  --amber-badge-text: #f5c876;
}

/* ---------- reset / base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  margin-top: 0 !important;
  background-color: var(--paper, #f6f7f3);
}
body {
  margin: 0;
  background: var(--paper, #f6f7f3);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.num {
  font-variant-numeric: tabular-nums;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg, rgba(246, 247, 243, 0.9));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 19px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}
.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-drawer.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer-links a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-drawer-links a:last-child {
  border-bottom: none;
}
.mobile-drawer-links a:hover {
  color: var(--teal-deep);
}
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none !important;
  }
  .nav-desktop-only {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--contrast-bg);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-deep);
}
.btn-ghost {
  color: var(--ink);
}
.btn-ghost:hover {
  color: var(--teal-deep);
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* ---------- section shell ---------- */
section {
  padding: 64px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
}
.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.rule {
  border: none;
  border-top: 1px solid var(--line);
}

/* ---------- badges ---------- */
.badge-amber {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber-tint);
  color: var(--amber-badge-text, #8a5a0f);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--amber-badge-border, #f0dcae);
}
.badge-amber::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.badge-teal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}
.badge-teal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.pro-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- module cards ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .modules {
    grid-template-columns: 1fr;
  }
}
.module {
  background: var(--paper-raised);
  padding: 26px;
}
.module.highlight {
  background: var(--teal-tint);
}
.module-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.module.highlight .module-tag {
  background: #fff;
}
.module h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.module p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.module-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--contrast-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.module-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ---------- use-case cards ---------- */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}
.ucard {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.ucard-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ucard-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--teal-deep);
}
.ucard h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.ucard p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- dark CTA band ---------- */
.cta-band {
  background: var(--contrast-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}
.cta-band p {
  color: #b9c0c7;
  font-size: 14.5px;
  margin: 0;
}
.cta-band .eyebrow {
  color: var(--teal);
}
.cta-band .btn-primary {
  background: var(--teal);
}
.cta-band .btn-primary:hover {
  background: var(--teal-deep);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.step .n {
  font-family: "Space Grotesk";
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.step h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  cursor: pointer;
}
.faq-item:first-child {
  border-top: none;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 70ch;
}
.faq-item .plus {
  font-size: 20px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.faq-support {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.faq-support .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-support .icon svg {
  width: 17px;
  height: 17px;
}
.faq-support h4 {
  font-size: 14.5px;
  margin-bottom: 3px;
}
.faq-support p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.faq-support a.mail {
  font-weight: 600;
  color: var(--teal-deep);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 700px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.foot-col h5 {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- floating action button ---------- */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(12, 191, 184, 0.4);
  z-index: 60;
  cursor: pointer;
  border: none;
}
.fab svg {
  width: 23px;
  height: 23px;
  stroke: #fff;
}
.fab:hover {
  background: var(--teal-deep);
}

/* ---------- auth modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay .modal {
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal {
  transform: scale(1);
}

.modal {
  width: 100%;
  max-width: 920px;
  min-height: 633px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--paper-raised);
  /* border: 1px solid var(--line); */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  position: relative;
}
@media (max-width: 760px) {
  .modal-overlay {
    padding: 16px 12px;
    align-items: center;
  }
  .modal {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
  }
  .modal-side {
    display: none !important;
  }
  .modal-form {
    padding: 28px 20px 24px;
  }
  .modal-form h2 {
    font-size: 20px;
  }
  .form-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }
}

.modal-side {
  background: var(--contrast-bg);
  color: #fff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}
.side-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  margin-top: 20px;
  width: fit-content;
}
.side-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.side-title {
  font-size: 28px;
  margin-top: 20px;
  color: #fff;
}
.side-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
  max-width: 26ch;
}
.side-feats {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.side-feat .fi {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-feat .fi svg {
  width: 16px;
  height: 16px;
}
.side-dots {
  position: absolute;
  bottom: 24px;
  left: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  opacity: 0.3;
}
.side-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.modal-form {
  padding: 44px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
}
.close-btn svg {
  width: 14px;
  height: 14px;
}
.modal-form h2 {
  font-size: 22px;
}
.form-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  margin-bottom: 26px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: "Inter";
}
.field input::placeholder {
  color: var(--ink-soft);
}

.otp-primary {
  background: var(--teal);
  color: #08130f;
  border: none;
  border-radius: 9px;
  padding: 14px;
  width: 100%;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.otp-primary:hover {
  background: var(--teal-deep);
}
.otp-primary svg {
  width: 16px;
  height: 16px;
}
.otp-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  margin: 18px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.divider::before {
  margin-right: 12px;
}
.divider::after {
  margin-left: 12px;
}

.signup-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 22px;
}
.signup-line a {
  color: var(--teal-deep);
  font-weight: 600;
}

.terms {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}
.terms a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.signup-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 22px;
}
.signup-line a {
  color: var(--teal-deep);
  font-weight: 600;
}
.eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  cursor: pointer;
}
.eye svg {
  width: 16px;
  height: 16px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 20px;
  font-size: 13px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}
.forgot {
  color: var(--teal-deep);
  font-weight: 600;
}

.field {
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: "Inter";
}
.field input::placeholder {
  color: var(--ink-soft);
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 40px;
}

.btn-secondary-form {
  width: 100%;
  padding: 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary-form:hover {
  border-color: var(--ink);
}
