/* Public pages (landing, auth forms, privacy, admin contacts) — layout rules
   on top of the Wattlink DS in components.css / colors_and_type.css. */

@import url("./components.css");

/* Base reset — these pages don't load styles.css, which carries it for the app */
* { box-sizing: border-box; }
html, body { margin: 0; }

.PublicPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header ---------------------------------------------------------- */
.PublicHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--dark-header-bg);
  border-bottom: 1px solid var(--white-1);
}
.PublicHeader__lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.PublicHeader__logo { height: 50px; width: auto; display: block; }
.BrandSuffix {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neutral-white);
  line-height: 1;
}
.PublicHeader .Nav__list { align-items: center; }
.Nav__link--button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--light-gray);
  padding: 0.5rem 1rem;
}
.Nav__link--button:hover { color: var(--brand-primary); }

/* Main ------------------------------------------------------------ */
.PublicMain {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
}
.PublicFlash { max-width: 34rem; margin: 0 auto var(--space-5); }

/* Footer ---------------------------------------------------------- */
.PublicFooter {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--white-1);
  font-size: var(--fs-xs);
}
.PublicFooter a { color: var(--light-gray); }
.PublicFooter a:hover { color: var(--brand-primary); }

/* Landing --------------------------------------------------------- */
.Hero { text-align: center; padding: var(--space-7) 0 var(--space-6); }
.Hero h1 { max-width: 44rem; margin: var(--space-3) auto; }
.Hero__lead {
  max-width: 38rem;
  margin: 0 auto var(--space-6);
  color: var(--light-gray);
  font-size: var(--fs-md);
}
.Hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.Hero__freenote {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--light-gray);
}

/* Module sections — alternating copy + fact panel */
.ModuleSection {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--white-1);
}
.ModuleSection--reverse .ModuleSection__panel { order: -1; }
.ModuleSection h2 {
  font-size: var(--fs-lgx);
  margin: var(--space-3) 0;
  letter-spacing: -0.01em;
}
.ModuleSection__lead {
  color: var(--light-gray);
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}
.ModuleSection__bullets {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ModuleSection__bullets li { display: flex; align-items: flex-start; gap: var(--space-2); }
.ModuleSection__bullets i { color: var(--brand-secondary); }
.ModuleSection__credibility {
  font-size: var(--fs-xs);
  color: var(--light-gray);
  border-left: 2px solid var(--brand-primary);
  padding-left: var(--space-3);
  margin: 0;
  line-height: 1.55;
}
.ModuleSection__panel { padding: var(--space-5); }
.Fact { padding: var(--space-3) 0; border-bottom: 1px solid var(--white-1); }
.Fact:last-child { border-bottom: 0; padding-bottom: 0; }
.Fact:first-child { padding-top: 0; }
.Fact__value { font-weight: 800; font-size: var(--fs-lg); color: var(--brand-primary); }
.Fact__caption { font-size: var(--fs-xs); color: var(--light-gray); margin-top: 0.15rem; }

@media (max-width: 720px) {
  .ModuleSection { grid-template-columns: 1fr; gap: var(--space-4); }
  .ModuleSection--reverse .ModuleSection__panel { order: 0; }
}

/* Freemium note */
.FreeNote {
  max-width: 44rem;
  margin: 0 auto var(--space-7);
  text-align: center;
  background: var(--dark-blue);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.FreeNote h2 { font-size: var(--fs-lg); margin: 0 0 var(--space-3); }
.FreeNote p { color: var(--white-85); margin: 0 0 var(--space-5); line-height: 1.55; }
.FreeNote p a { color: var(--brand-primary); }

.Steps { text-align: center; padding: var(--space-6) 0 var(--space-7); }
.Steps h2 { font-size: var(--fs-lg); margin-bottom: var(--space-5); }
.Steps__list {
  list-style: none;
  margin: 0 auto var(--space-6);
  padding: 0;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}
.Steps__list li { display: flex; align-items: center; gap: var(--space-3); }
.Steps__num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Auth cards ------------------------------------------------------ */
.AuthCard {
  max-width: 26rem;
  margin: var(--space-6) auto;
  background: var(--dark-blue);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.AuthCard__title { font-size: var(--fs-lg); margin: 0 0 var(--space-4); }
.AuthForm__submit { width: 100%; margin-top: var(--space-3); }
.AuthCard__consent { font-size: var(--fs-xxs); margin-top: var(--space-3); text-align: center; }
.AuthCard__consent a, .AuthCard__alt a { color: var(--brand-primary); }
.AuthCard__alt { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--light-gray); text-align: center; }

/* Privacy / admin ------------------------------------------------- */
.PrivacyPage { max-width: 42rem; margin: 0 auto; }
.PrivacyPage h1 { font-size: var(--fs-lgx); margin-bottom: var(--space-5); }
.PrivacyPage h3 { margin: var(--space-5) 0 var(--space-2); }
.PrivacyPage p { color: var(--white-85); }
.PrivacyPage a { color: var(--brand-primary); }

.AdminContacts h1 { font-size: var(--fs-lgx); }
.AdminContacts__table { margin-top: var(--space-5); overflow-x: auto; }
.AdminContacts .Table a { color: var(--neutral-white); text-decoration: none; }
.AdminContacts .Table a:hover { color: var(--brand-primary); }
