/* Brand colors (--color-*), dark/light scales, --shadow-custom, --shadow-custom2
 * are injected by the server. Local tokens below are landing-page-specific. */
:root {
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
  --gradient-orange: radial-gradient(ellipse at top right, rgba(255,255,255,0.2) 0%, transparent 60%), radial-gradient(ellipse at bottom left, rgba(244,157,24,0.4) 0%, transparent 60%), linear-gradient(135deg, #F49D18 0%, #F3883C 100%);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--color-dark-5);
  line-height: 1.6;
  background: var(--color-light-1);
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* Layout */
.container { max-width:1200px; margin:0 auto; padding:0 4rem; }
.container.narrow { max-width:760px; }
.container.split { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.three-col { display:grid; grid-template-columns:repeat(3,1fr); gap:3rem; }
.center { text-align:center; }
.rounded { border-radius:1rem; overflow:hidden; box-shadow:var(--shadow-custom); }

/* Typography */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-dark-5);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
h3 { font-size:1.5rem; font-weight:600; margin-bottom:0.75rem; }
.subtitle { font-size:clamp(1.125rem, 2vw, 1.5rem); color:var(--color-dark-7); margin-bottom:2rem; }
.lead { font-size:1.25rem; color:var(--color-dark-7); margin-bottom:1rem; }
.note { font-size:1.125rem; margin-top:2rem; color:var(--color-dark-7); }
.note + .btn-primary, .note + .btn-secondary { margin-top:2rem; }
.orange { color:var(--color-orange) !important; }

/* Buttons */
.btn-primary, .btn-secondary {
  display:inline-block;
  padding:1rem 2.5rem;
  border-radius:999px;
  font-weight:600;
  font-size:1rem;
  transition: transform .2s, box-shadow .3s;
  box-shadow: var(--shadow-custom);
}
.btn-primary { background:var(--gradient-orange); color:white; }
.btn-secondary { background:white; color:var(--color-orange); }
.btn-primary:hover, .btn-secondary:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }

/* Top nav */
.top-nav {
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 2rem;
  background:rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--color-light-4);
}
.top-nav-logo img { height:44px; display:block; }
.top-nav-cta {
  display:inline-block;
  padding:0.5rem 1.25rem;
  border-radius:999px;
  background:var(--color-orange);
  color:#fff;
  font-weight:600;
  font-size:0.875rem;
  transition: transform .15s, box-shadow .2s;
}
.top-nav-cta:hover { transform:translateY(-1px); box-shadow:var(--shadow-custom); }

/* Header */
.header {
  background: linear-gradient(180deg, var(--color-light-1) 0%, var(--color-light-2) 100%);
  text-align:center;
  padding:5rem 2rem 6rem;
  max-width:900px;
  margin:0 auto;
}
.logo { height:72px; margin:0 auto 3rem; }
.header-bullets {
  display:flex; justify-content:center; gap:2.5rem; flex-wrap:wrap;
  margin-top:3rem; color:var(--color-dark-7); font-size:0.95rem;
}
.header-bullets li::before { content:'✓'; color:var(--color-orange); margin-right:0.5rem; font-weight:700; }

/* Problem (orange section) */
.problem {
  background: var(--gradient-orange);
  color:white;
  padding:8rem 2rem;
  text-align:center;
}
.problem h2 { color:white; margin-bottom:2rem; }
.problem p { font-size:1.375rem; margin-top:1.5rem; max-width:700px; margin-left:auto; margin-right:auto; }

/* Preview */
.preview {
  background: var(--color-light-3);
  padding: 6rem 0;
  text-align:center;
}
.preview h2 { margin-bottom:1rem; }
.preview .lead { margin-bottom:3rem; }

.preview-app {
  display:grid;
  grid-template-columns: 260px 1fr;
  max-width:1000px;
  height:720px;
  margin:0 auto;
  background:var(--color-light-1);
  border:1px solid var(--color-light-4);
  border-radius:1rem;
  overflow:hidden;
  box-shadow: var(--shadow-lg);
  text-align:left;
}
.preview-sidebar {
  border-right: 1px solid var(--color-light-4);
  overflow-y:auto;
  display:flex;
  flex-direction:column;
}
.preview-sidebar-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--color-light-4);
  background:var(--color-light-1);
  position:sticky;
  top:0;
}
.preview-org {
  font-size:0.75rem;
  font-weight:700;
  color:var(--color-dark-5);
}
.preview-people { flex:1; }
.preview-row {
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.75rem 1rem;
  font-size:0.875rem;
  border-bottom:1px solid var(--color-light-4);
  cursor:pointer;
  position:relative;
  transition: background 0.15s;
}
.preview-row:hover { background:var(--color-light-2); }
.preview-row.selected { background:var(--color-light-2); }
.preview-check {
  width:20px; height:20px;
  border-radius:3px;
  border:1px solid var(--color-light-4);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: background 0.15s, border-color 0.15s;
}
.preview-person-name {
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding-right:3.5rem;
}
.preview-pill {
  position:absolute;
  top:6px; right:12px;
  font-size:8px;
  padding:2px 4px;
  border-radius:3px;
  font-weight:700;
  text-transform:lowercase;
  letter-spacing:0.02em;
}
.preview-hint {
  font-size:0.7rem;
  color:var(--color-dark-7);
  padding:0.75rem;
  margin-top:0.5rem;
  line-height:1.4;
}
.preview-stage {
  padding: 1.5rem 2rem 2rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
.preview-name {
  font-size:1.125rem;
  font-weight:600;
  margin-bottom:0.5rem;
}
.preview-chart {
  position:relative;
  width:540px;
  height:540px;
  max-width:100%;
  margin-top:0.5rem;
  overflow:visible;
}
.preview-chart canvas { display:block; width:100%; height:100%; }

/* Modals */
.modal {
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  z-index:1000;
}
.modal.open { display:flex; }
.modal-backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(4px);
  cursor:pointer;
}
.modal-box {
  position:relative;
  width:90%; max-width:800px;
  background:var(--color-light-1);
  border-radius:1rem;
  padding:2rem;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.modal-box img { width:100%; border-radius:0.5rem; }
.modal-cta { display:inline-block; margin-top:1.5rem; }
.modal-close {
  position:absolute; top:0.75rem; right:1rem;
  background:none; border:none;
  font-size:1.75rem; line-height:1;
  color:var(--color-dark-7); cursor:pointer;
  padding:0.25rem 0.5rem;
}
.modal-close:hover { color:var(--color-orange); }
.preview-actions {
  display:flex;
  gap:0.75rem;
  margin-top:1rem;
}
.btn-pill {
  padding:0.5rem 1.25rem;
  border-radius:999px;
  font-size:0.875rem;
  font-weight:600;
  color:#fff;
  transition: transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-custom);
}
.btn-pill-orange { background:var(--color-orange); }
.btn-pill-purple { background: linear-gradient(135deg, #747BBA 0%, #9097D6 100%); }
.btn-pill:hover { transform:translateY(-1px); box-shadow: var(--shadow-lg); }

/* Solution / Why / Contact */
.solution, .why, .contact { padding:6rem 0; background:var(--color-light-1); }
.why { background:var(--color-light-2); }

/* Check list */
.check-list { margin:1.5rem 0; }
.check-list li {
  position:relative; padding-left:2rem; margin-bottom:1rem; font-size:1.125rem;
}
.check-list li::before {
  content:'✓'; position:absolute; left:0; top:0;
  color:var(--color-orange); font-weight:700; font-size:1.25rem;
}

/* How it works (orange section) */
.how-it-works {
  background: var(--gradient-orange); color:white; padding:6rem 0;
}
.how-it-works h2, .how-it-works h3 { color:white; }
.how-item {
  border-left: 3px solid rgba(255,255,255,0.3);
  padding-left:1.5rem;
}
.how-icon { margin-bottom:1rem; color:white; display:block; }
.how-icon svg { display:block; height:2.25rem; width:auto; fill:currentColor; }
.how-item p { color:rgba(255,255,255,0.9); }
.cta-header { margin:4rem auto 1.5rem; font-size:1.25rem; font-weight:600; max-width:600px; }

/* Circle of change */
.circle { padding:6rem 0; background:var(--color-light-1); }
.role-list { margin:1.5rem 0; }
.role-list li { font-size:1.125rem; margin-bottom:1rem; }
.role { font-weight:700; margin-right:0.75rem; display:inline-block; min-width:90px; }
.role-orange { color:var(--color-chart-orange); }
.role-blue { color:var(--color-chart-blue); }
.role-red { color:var(--color-chart-red); }
.role-green { color:var(--color-chart-green); }

.circle-visual { display:flex; justify-content:center; align-items:center; }
.circle-chart {
  position:relative;
  width:500px;
  height:500px;
  max-width:100%;
}
.circle-chart canvas { display:block; width:100%; height:100%; }

/* About */
.about { background:var(--color-light-1); padding:6rem 0; }
.founders { display:grid; grid-template-columns:1fr 1fr; gap:4rem; margin-top:4rem; }
.founder { text-align:center; }
.founder img {
  width:160px; height:160px;
  border-radius:50%; object-fit:cover;
  margin:0 auto 1.5rem;
}
.founder h3 { margin-bottom:0.25rem; }
.role-label { color:var(--color-orange); font-weight:600; margin-bottom:1rem; text-align:center; }
.founder p { text-align:left; }
.founder .role-label { text-align:center; }

/* Partners */
.partners { background:var(--color-light-2); padding:6rem 0 8rem; }
.partners-title {
  font-size:1.25rem; font-weight:600; max-width:700px; margin:0 auto 4rem; color:var(--color-dark-7);
}
.partner img { width:auto; max-height:48px; object-fit:contain; margin-bottom:1rem; }
.partner-bar { width:40px; height:3px; background:var(--color-orange); margin:1rem 0; }

/* Use cases (orange section) */
.use-cases { background:var(--gradient-orange); color:white; padding:6rem 0; }
.use-cases h3 { color:white; }
.use-case p { color:rgba(255,255,255,0.9); font-size:1.125rem; }

/* FAQ */
.faq { background:var(--color-light-2); padding:6rem 0; }
.faq h2 { margin-bottom:1rem; }
.faq .lead { margin-bottom:3rem; max-width:700px; margin-left:auto; margin-right:auto; }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.faq details {
  background:white; border-radius:0.75rem;
  padding:1.25rem 1.5rem; box-shadow:var(--shadow-custom);
  transition: box-shadow .2s;
}
.faq details:hover { box-shadow: var(--shadow-lg); }
.faq summary {
  font-weight:600; font-size:1.0625rem; cursor:pointer;
  list-style:none; display:flex; justify-content:space-between; align-items:center;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; color:var(--color-orange); font-size:1.5rem; font-weight:400; transition:transform .2s; }
.faq details[open] summary::after { content:'−'; }
.faq details p { margin-top:1rem; color:var(--color-dark-7); line-height:1.7; }

/* Contact */
.contact { padding:6rem 0; }
.contact .lead { margin-bottom:0.5rem; }
.contact a { margin-top:2rem; }

/* Session-aware CTAs (toggled by html.emaho-signed-in injected by serve-site-file) */
html:not(.emaho-signed-in) .signed-in-only { display: none; }
html.emaho-signed-in .anon-only { display: none; }

/* Footer */
footer { background:var(--color-light-2); padding:4rem 0; text-align:center; }
.footer-text { font-style:italic; color:var(--color-dark-7); max-width:600px; margin:0 auto 2rem; }
.footer-logo { height:64px; margin:0 auto; }

/* Responsive */
@media (max-width: 900px) {
  .container { padding:0 1.5rem; }
  .container.split { grid-template-columns:1fr; gap:2rem; }
  .three-col { grid-template-columns:1fr; gap:2rem; }
  .founders { grid-template-columns:1fr; gap:3rem; }
  .faq-grid { grid-template-columns:1fr; }
  .header { padding:3rem 1.5rem 4rem; }
  .header-bullets { gap:1rem; flex-direction:column; align-items:flex-start; max-width:280px; margin-left:auto; margin-right:auto; }
  .problem, .preview, .solution, .circle, .why, .about, .partners, .use-cases, .faq, .contact, .how-it-works { padding:4rem 0; }
  .circle-chart { width:300px; height:300px; }
  .preview-app { grid-template-columns:1fr; height:auto; }
  .preview-sidebar { border-right:none; border-bottom:1px solid var(--color-light-4); }
  .preview-chart { width:90vw; height:90vw; max-height:500px; }
}
