/* GentleCase marketing site — shared styles */

:root {
  /* core palette — pulled from app screenshots */
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;

  /* accent (overridable via tweaks) */
  --accent: var(--purple-600);
  --accent-soft: var(--purple-100);
  --accent-deep: var(--purple-800);

  --blue-hero-1: #1e3a8a;
  --blue-hero-2: #2563eb;

  --green: #10b981;
  --green-soft: #d1fae5;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --rose: #f43f5e;
  --rose-soft: #ffe4e6;

  --ink: #0b0d12;
  --ink-2: #1f2433;
  --ink-3: #4a5063;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-2: #eef0f4;

  --bg: #ffffff;
  --bg-2: #fafbfc;
  --bg-3: #f4f5f8;
  --card: #ffffff;
  --card-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(15,17,21,0.12);
  --card-shadow-lg: 0 1px 0 rgba(0,0,0,0.02), 0 30px 60px -24px rgba(76,29,149,0.18);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,17,21,0.06);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(15,17,21,0.04);
}
.nav-links a.active {
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 18px -8px rgba(124,58,237,0.5);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-3); border-color: rgba(15,17,21,0.14); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-2); }
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 12px;
}

/* footer */
.site-footer {
  background: var(--ink);
  color: #cbd1de;
  padding: 72px 0 36px;
  margin-top: 120px;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer .brand { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { font-size: 14px; color: #aab1c0; }
.site-footer a:hover { color: #fff; }
.site-footer .tag {
  font-size: 14px;
  color: #aab1c0;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.55;
}
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7d8497;
}

/* common headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1.display, h2.display, h3.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
h1.display { font-size: clamp(48px, 6.4vw, 86px); }
h2.display { font-size: clamp(36px, 4.6vw, 60px); }
h3.display { font-size: clamp(26px, 2.8vw, 38px); }

h1.sans, h2.sans, h3.sans {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
h1.sans { font-size: clamp(44px, 5.8vw, 76px); }
h2.sans { font-size: clamp(32px, 4vw, 52px); }
h3.sans { font-size: clamp(22px, 2.2vw, 30px); }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 60ch;
  font-weight: 400;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ----- App-mock primitives (shared) ---------- */
.app-window {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,17,21,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px -24px rgba(76,29,149,0.22),
    0 12px 32px -18px rgba(15,17,21,0.18);
  overflow: hidden;
  position: relative;
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fcfcfd 0%, #f6f7fa 100%);
}
.app-chrome .lights { display: flex; gap: 6px; }
.app-chrome .lights span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e3e6ec;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}
.app-chrome .lights span:nth-child(1) { background: #ff6058; }
.app-chrome .lights span:nth-child(2) { background: #ffbd2e; }
.app-chrome .lights span:nth-child(3) { background: #28ca42; }
.app-chrome .url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 4px 12px;
  max-width: 360px;
  margin: 0 auto;
}

.app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
  background: #fbfbfd;
}

.app-sidebar {
  background: #fff;
  border-right: 1px solid var(--line-2);
  padding: 18px 12px;
}
.app-sidebar .ws-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin: 12px 8px 8px;
  text-transform: uppercase;
}
.app-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 2px;
  font-weight: 500;
}
.app-sidebar .nav-item .ic { width: 14px; height: 14px; opacity: 0.7; }
.app-sidebar .nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
.app-sidebar .nav-item.active .ic { opacity: 1; }
.app-sidebar .badge {
  margin-left: auto;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.app-content {
  padding: 22px 24px;
  overflow: hidden;
}
.app-page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

/* status pills (matches the app) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-purple { background: var(--purple-100); color: var(--purple-700); }
.pill-amber  { background: var(--amber-soft); color: #b45309; }
.pill-green  { background: var(--green-soft); color: #047857; }
.pill-rose   { background: var(--rose-soft); color: #be123c; }
.pill-blue   { background: #dbeafe; color: #1d4ed8; }
.pill-slate  { background: #e2e8f0; color: #334155; }

/* avatar */
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* utility */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* responsive */
@media (max-width: 880px) {
  .site-footer .row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid rgba(15,17,21,0.06);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 12px 16px;
    text-align: center;
  }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .site-footer .row { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .legal { flex-direction: column; gap: 8px; text-align: center; }
}
