/* Shared by the standalone marketing/legal pages (features, pricing, privacy, terms) - the
   dashboard and landing page in index.html keep their own embedded styles since they also drive
   the app shell; this file is just for the simpler pages around it. */

:root {
  --graphite: #30343B; --ink: #20242C; --lime: #A3CE32; --white: #FFFFFF; --canvas: #F5F6F2;
  --muted-slate: #65707B; --mist: #E8EDF2; --sage: #E8EEDC;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif; font-size: 16px; line-height: 1.6;
}
h1, h2, h3 { font-weight: 700; margin: 0; color: var(--ink); }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.brand-mark { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark img { width: auto; display: block; height: 36px; }
.brand-mark span { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; font-size: 1.35rem; }

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 1.1rem 1.75rem; position: relative;
}
/* Everything but the logo lives in one right-aligned group on desktop, and collapses as a whole
   into the hamburger menu below the breakpoint - the logo itself is never touched either way. */
.site-nav-right { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav .nav-links { display: flex; gap: 1.5rem; }
.site-nav .nav-links a { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--graphite); }
.site-nav .nav-links a:hover { text-decoration: underline; }
.site-nav .actions { display: flex; gap: 0.6rem; align-items: center; }
.nav-hamburger {
  display: none; background: none; border: 1px solid var(--mist); border-radius: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--graphite); }

/* Grouped dropdown menus (Product / Resources / Company) - click-toggle so it works the same
   with mouse, touch and keyboard; no hover-reveal. */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none; border: none; font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--graphite); display: flex; align-items: center; gap: 0.35rem; padding: 0;
}
.nav-dropdown .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-top: 2px; transition: transform 0.15s;
}
.nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 0.9rem); left: -0.75rem; z-index: 25;
  background: var(--white); border: 1px solid var(--mist); border-radius: 10px;
  min-width: 190px; padding: 0.4rem; box-shadow: 0 14px 34px rgba(32, 36, 44, 0.12);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 7px; font-size: 0.88rem;
  color: var(--graphite); text-decoration: none; font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--canvas); }

@media (max-width: 860px) {
  .site-nav-right {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0.9rem; background: var(--white); padding: 1.25rem 1.75rem 1.5rem;
    border-bottom: 1px solid var(--mist); z-index: 20;
  }
  .site-nav-right.open { display: flex; }
  .site-nav .nav-links { flex-direction: column; gap: 0.9rem; align-items: stretch; }
  .nav-hamburger { display: flex; }
  /* Inline accordion instead of a floating panel - avoids nested-absolute weirdness inside the
     already-absolute mobile menu. */
  .nav-dropdown-menu {
    display: none; position: static; box-shadow: none; border: none; margin: 0.35rem 0 0 0.5rem;
    padding: 0; min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

.btn { border: none; border-radius: 10px; padding: 0.55rem 1rem; font-weight: 700; font-size: 0.85rem; }
.btn-primary { background: var(--lime); color: var(--graphite); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: var(--white); color: var(--graphite); border: 1px solid var(--mist); }
.btn-text { background: none; border: none; color: var(--graphite); font-weight: 600; text-decoration: underline; padding: 0; font-size: 0.85rem; }

.card { background: var(--white); border: 1px solid var(--mist); border-radius: 14px; padding: 1.25rem; }

.page-header { text-align: center; padding: 3.5rem 1.75rem 2.5rem; max-width: 760px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); text-wrap: balance; }
.page-header p { color: var(--muted-slate); font-size: 1.05rem; margin-top: 0.9rem; }

.site-footer { border-top: 1px solid var(--mist); padding: 2.5rem 1.75rem 1.75rem; margin-top: 2rem; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.site-footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-slate); margin: 0 0 0.75rem; }
.site-footer-col a { display: block; color: var(--graphite); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.55rem; }
.site-footer-col a:hover { text-decoration: underline; }
.site-footer-copy { color: var(--muted-slate); font-size: 0.8rem; max-width: 1100px; margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--mist); }

/* Legal-page prose */
.prose { max-width: 760px; margin: 0 auto; padding: 0 1.75rem 4rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--graphite); font-size: 0.95rem; }
.prose ul { padding-left: 1.2rem; }
.prose .updated { color: var(--muted-slate); font-size: 0.85rem; }

@media (max-width: 768px) {
  .site-nav { padding: 0.9rem 1.1rem; }
  .page-header { padding: 2.5rem 1.1rem 2rem; }
  .brand-mark img { height: 30px; }
  .brand-mark span { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .site-footer-inner { flex-direction: column; gap: 1.5rem; }
}
