/* Community Portal landing page. Served under the page's CSP (style-src 'self'),
   so every style lives here: inline style attributes would be blocked. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("montserrat-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("roboto-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --enactor-blue-black: #212A34;
  --enactor-light-blue: #4AC0E7;
  --enactor-iceberg: #ECF5FC;
  --enactor-pink: #DE6778;
  --charcoal-100: #EBF0F5;
  --charcoal-300: #B4C1CF;
  --charcoal-600: #3E4F61;
  --charcoal-700: #2A3744;
  --charcoal-800: #212A34;
  --blue-500: #008BBB;
  --blue-600: #00739A;
  --error: #B42335;
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(33,42,52,.08), 0 8px 24px rgba(33,42,52,.06);
  --shadow-menu: 0 1px 2px rgba(33,42,52,.08), 0 8px 24px rgba(33,42,52,.12);
  --shadow-xl: 0 24px 48px rgba(18,24,32,.18);
  --gutter: clamp(24px, 5vw, 64px);
  --ease: 200ms cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-family: var(--font-body); color: var(--charcoal-800); }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: #006E94; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--enactor-light-blue); outline-offset: 2px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.rule { display: block; width: 56px; height: 2px; background: var(--enactor-pink); transform: skewY(-8deg); }
.rule.short { width: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  font-family: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { padding: 14px 24px; border: 0; background: var(--blue-500); color: #fff; font-size: 15px; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-light { padding: 16px 28px; background: #fff; color: var(--charcoal-800); font-size: 16px; }
.btn-light:hover { background: var(--enactor-iceberg); color: var(--charcoal-800); }
.btn-outline { padding: 15px 27px; border: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 16px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* Header */
.site-header {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 20px var(--gutter);
  border-bottom: 1px solid var(--charcoal-100); background: #fff;
}
.brand { display: flex; align-items: center; gap: 16px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand-divider { width: 1px; height: 24px; background: var(--enactor-pink); }
.brand-name {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal-700);
}
.header-actions { display: flex; align-items: center; gap: 20px; }
/* Signed-in header links, sized to match the Log In menu they replace. */
.btn-header { padding: 12px 20px; font-size: 14px; }

/* Log In menu: a <details> element, so it opens without script. */
.login-menu { position: relative; }
.login-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border-radius: 999px; background: var(--blue-500); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--ease);
}
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary:hover { background: var(--blue-600); }
.login-menu summary svg { width: 14px; height: 14px; }
.login-menu-items {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px;
  display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--shadow-menu);
}
.login-menu-items a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; color: var(--charcoal-800); }
.login-menu-items a:hover { background: var(--enactor-iceberg); text-decoration: none; }
.login-menu-items strong { font-size: 15px; font-weight: 600; }
.login-menu-items span { font-size: 13px; color: var(--charcoal-600); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #212A34 0%, #2B3846 55%, #3A4C5E 100%);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; }
.hero::before {
  right: -120px; top: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(74,192,231,.22) 0%, rgba(74,192,231,0) 70%);
}
.hero::after {
  right: 12%; bottom: -200px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(222,103,120,.18) 0%, rgba(222,103,120,0) 70%);
}
.hero .wrap { position: relative; display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--enactor-pink); flex-shrink: 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05; letter-spacing: -.02em; max-width: 920px; margin: 0; text-wrap: balance;
}
.rules { display: flex; gap: 6px; }
.hero p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 680px; margin: 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }

/* What's inside */
.inside { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.inside .wrap { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15; letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 3vw, 40px); }
.group { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; border-top: 1px solid var(--enactor-pink); }
.group .eyebrow { color: var(--charcoal-600); }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.group h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.group p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--charcoal-600); text-wrap: pretty; }

/* Audience cards */
.audiences { background: var(--enactor-iceberg); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.audiences .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: 16px; padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card);
}
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; margin: 0; }
.card p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--charcoal-600); text-wrap: pretty; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Footer */
.site-footer { margin-top: auto; background: var(--enactor-blue-black); padding: 40px var(--gutter); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { height: 26px; width: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.site-footer a { color: #fff; }

/* Sign-in panel: rendered only when the page is asked for a tier. It sits over
   the page; its close link goes back to the plain page. */
.signin-backdrop {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(24px, 8vh, 96px) 16px; overflow-y: auto; background: rgba(22,29,36,.6);
}
.signin {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; gap: 18px;
}
.signin h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0; }
.signin-close {
  position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: var(--charcoal-600);
}
.signin-close:hover { color: var(--charcoal-800); text-decoration: none; }
.signin form { display: flex; flex-direction: column; gap: 14px; }
.signin label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.signin input {
  padding: 10px 12px; border: 1px solid var(--charcoal-300); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--charcoal-800);
}
.signin input:focus { outline: none; border-color: #4C7FA2; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--enactor-light-blue); }
.signin .btn-primary { align-self: stretch; justify-content: center; font-size: 16px; padding: 15px 28px; }
.signin-error {
  margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.5;
  color: var(--error); background: #FCEFF1; border: 1px solid #F3C5CC;
}
.signin-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.signin-staff { padding-top: 16px; border-top: 1px solid var(--charcoal-100); font-size: 14px; color: var(--charcoal-600); }

/* Request access: the header and hero links to it, and the section itself. */
.header-link { font-size: 14px; font-weight: 500; color: var(--charcoal-800); }
.hero-request { font-size: 15px; font-weight: 500; color: var(--enactor-light-blue); padding: 8px 4px; }
.hero-request:hover { color: #fff; }
.request { background: var(--enactor-blue-black); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.request .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.request-intro { display: flex; flex-direction: column; gap: 20px; color: #fff; }
.request-intro h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1; letter-spacing: -.015em; margin: 0;
}
.request-intro p { font-size: 17px; line-height: 1.65; margin: 0; max-width: 480px; text-wrap: pretty; }
.request-intro .request-already { font-size: 15px; line-height: 1.6; }
.request-intro a { color: var(--enactor-light-blue); text-decoration: underline; }
.request-panel {
  background: #fff; border-radius: 16px; padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 14px;
}
.request-form { display: flex; flex-direction: column; gap: 14px; }
.request-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.request-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.request-form input, .request-form select {
  padding: 10px 12px; border: 1px solid var(--charcoal-300); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 15px; color: var(--charcoal-800);
}
.request-form input:focus, .request-form select:focus {
  outline: none; border-color: #4C7FA2; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--enactor-light-blue);
}
.request-form .btn-primary { align-self: flex-start; font-size: 16px; padding: 15px 28px; }
/* The honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-thanks { display: flex; flex-direction: column; gap: 16px; padding: 16px 0; }
.request-thanks h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.15; margin: 0; }
.request-thanks p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--charcoal-600); }
.request-thanks a { font-size: 14px; font-weight: 500; }
