/* Foreman Marketing — light cousin of the app
   Shared styles for the public-facing landing pages. */

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

/* Default these pages to light theme */
html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

/* ── Layout ─────────────────────────────────────────── */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1280px;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.3px;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.4);
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-micro);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link.is-active {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger button — hidden on desktop, shown at mobile breakpoint */
.nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--duration-micro) var(--ease-micro);
}

.nav__hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav__hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  margin: 5px 0;
  transition: transform var(--duration-micro) var(--ease-micro),
              opacity var(--duration-micro) var(--ease-micro);
}

/* Animate bars into an X when nav is open */
.nav.is-open .nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer — slide-down panel under the sticky nav.
   Hidden on desktop entirely; only revealed at mobile breakpoint
   when `hidden` attribute is removed by JS. */
.nav__drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 6px 20px 14px;
  gap: 0;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: rgba(251, 249, 244, 0.98);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.nav__drawer-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
  transition: color var(--duration-micro) var(--ease-micro);
}

.nav__drawer-link:hover {
  color: var(--text);
}

.nav__drawer-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav__drawer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0 2px;
}

/* Bottom row: Sign in + Get started side-by-side, fills width. */
.nav__drawer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.nav__drawer-actions .nav__drawer-link {
  padding: 8px 4px;
}

.nav__drawer-cta {
  flex: 1;
  justify-content: center;
  height: 38px;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: block; }
  .nav__drawer:not([hidden]) { display: flex; }
  .nav__inner { height: 56px; }
  .container { padding: 0 20px; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-micro) var(--ease-micro);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  background: #0F766E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-2);
  background: var(--surface);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.btn--secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--xl {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ── Eyebrows / Mono Labels ─────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow--accent { color: var(--accent); }

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── Display Type ───────────────────────────────────── */
/* Slimmer marketing display — Inter 300, less aggressive tracking.
   Editorial confidence over advertising shout. */
.display {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--text);
  text-wrap: balance;
}

.display--xxl { font-size: clamp(48px, 6.4vw, 80px); letter-spacing: -3px; }
.display--xl  { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -1.6px; }
.display--lg  { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -1.2px; }

.display em {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -1.2px;
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 56ch;
  font-weight: 400;
}

@media (max-width: 600px) {
  .lede { font-size: 16px; }
}

/* ── Sections ───────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }
.section--hero  { padding: 80px 0 96px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section--hero { padding: 48px 0 64px; }
}

.section__head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section__head .eyebrow {
  margin-bottom: 14px;
}

.section__head .lede {
  margin-top: 16px;
}

/* Tinted band sections */
.section--tint {
  background: var(--surface-inset);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--dark {
  background: #0E0C0B;
  color: #FAFAF9;
}
.section--dark .display,
.section--dark h2,
.section--dark h3 { color: #FAFAF9; }
.section--dark .lede,
.section--dark .body { color: #A8A29E; }
.section--dark .eyebrow { color: var(--accent-light); }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-standard) var(--ease-smooth);
}

.card--elevated {
  background: var(--surface-elevated);
  box-shadow: var(--shadow-md);
}

.card--bordered:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-inset);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-micro);
}
.footer__link:hover { color: var(--text); }

.footer__brand-block { max-width: 320px; }
.footer__tagline {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.55;
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer__legal-links {
  display: flex;
  gap: 24px;
}
.footer__legal-links a {
  color: var(--text-3);
  text-decoration: none;
}
.footer__legal-links a:hover { color: var(--text-2); }

/* ── Long-form (Terms/Privacy/About) ────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.prose h1 {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -1.4px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.05;
}

.prose .doc-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 48px;
  display: flex;
  gap: 16px;
}

.prose h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin: 56px 0 12px;
  letter-spacing: -0.4px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
}

.prose p { margin-bottom: 16px; color: var(--text-2); }
.prose ul, .prose ol { margin: 12px 0 16px 24px; }
.prose li { margin-bottom: 8px; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.prose__toc {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0 48px;
}
.prose__toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.prose__toc ol {
  list-style: none;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.prose__toc li {
  margin-bottom: 6px;
  font-size: 14px;
}
.prose__toc a {
  color: var(--text-2);
  text-decoration: none;
}
.prose__toc a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .prose__toc ol { columns: 1; }
}
