/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy-950: #f2ede0;
  --navy-900: #ffffff;
  --navy-800: #faf8f3;
  --navy-700: #ece6d6;
  --navy-600: #ddd4bd;
  --navy-border: #e3ddc9;

  --amber-500: #f0a94a;
  --amber-400: #f5bd70;
  --amber-300: #f9d29a;
  --amber-900: #4a340f;

  --green-500: #4caf82;
  --green-300: #2f8f63;

  --cream: #16233f;
  --cream-dim: #4c5670;
  --muted: #837f6e;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-900);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber-900);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--cream);
  box-shadow: 0 6px 20px rgba(240, 169, 74, 0.25);
}
.btn-primary:hover { background: var(--amber-400); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--navy-border);
}
.btn-ghost:hover { border-color: var(--amber-500); color: var(--amber-900); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
}
.logo-mark { flex-shrink: 0; }
.logo span { color: var(--amber-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
}

/* ============ Hero ============ */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 400px at 85% -10%, rgba(240,169,74,0.14), transparent 60%),
    radial-gradient(ellipse 500px 400px at 5% 10%, rgba(76,175,130,0.10), transparent 60%);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--amber-900); font-style: normal; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.trust-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ============ Sections generic ============ */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--cream-dim); font-size: 1.02rem; }
.section-alt { background: var(--navy-800); border-top: 1px solid var(--navy-border); border-bottom: 1px solid var(--navy-border); }

.section-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; gap: 20px; flex-wrap: wrap; }

/* ============ Problem grid ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.problem-card .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--amber-900);
  margin-bottom: 14px;
}
.problem-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.problem-card p { color: var(--cream-dim); font-size: 0.94rem; }

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ============ How it works steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 32px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-border);
}
.step-card .step-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--amber-900);
  color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { color: var(--cream-dim); font-size: 0.94rem; }
.step-tag {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--navy-600);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ Pitch cards / feed ============ */
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pitch-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.pitch-card:hover { transform: translateY(-4px); border-color: var(--amber-500); }
.pitch-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  position: relative;
  display: flex; align-items: flex-end; padding: 14px 16px;
}
.pitch-thumb .cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(7,12,20,0.6);
  color: var(--amber-300);
  padding: 5px 10px;
  border-radius: 999px;
}
.pitch-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.pitch-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pitch-body .one-liner { color: var(--cream-dim); font-size: 0.88rem; margin-bottom: 18px; flex: 1; }

.progress-track {
  height: 7px;
  background: var(--navy-700);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber-500), var(--amber-400)); border-radius: 999px; }
.progress-fill.funded { background: linear-gradient(90deg, var(--green-500), var(--green-300)); }

.pitch-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.pitch-stats strong { color: var(--cream); font-weight: 600; }

.pitch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--navy-border);
}
.pitch-meta .min-ticket { color: var(--amber-900); font-weight: 600; }

@media (max-width: 980px) {
  .pitch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pitch-grid { grid-template-columns: 1fr; }
}

/* ============ Timeline (how backing works) ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--navy-border);
  z-index: 0;
}
.tl-item { position: relative; z-index: 1; padding-right: 10px; }
.tl-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--amber-500);
  color: var(--amber-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 16px;
}
.tl-item h4 { font-size: 1rem; margin-bottom: 8px; }
.tl-item p { font-size: 0.85rem; color: var(--cream-dim); }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
}

/* ============ Founder checklist ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.checklist li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--navy-border);
}
.checklist li:last-child { border-bottom: none; }
.check-ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--amber-900);
  color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}
.checklist h4 { font-size: 0.98rem; margin-bottom: 4px; }
.checklist p { font-size: 0.85rem; color: var(--cream-dim); }

.mock-panel {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 26px;
}
.mock-panel .mock-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px dashed var(--navy-border);
  font-size: 0.85rem;
}
.mock-panel .mock-row span:last-child { color: var(--amber-900); font-weight: 600; }
.mock-bar-row { margin: 18px 0 6px; }
.mock-bar-row .label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Trust grid ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  text-align: center;
}
.trust-card .ico { font-size: 1.6rem; margin-bottom: 14px; }
.trust-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.trust-card p { font-size: 0.82rem; color: var(--cream-dim); }

@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============ CTA banner ============ */
.cta-banner {
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border: 1px solid var(--navy-border);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240,169,74,0.16), transparent 60%);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--cream-dim); margin-bottom: 30px; position: relative; }
.cta-banner .hero-ctas { justify-content: center; position: relative; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--navy-border);
  padding: 56px 0 30px;
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 14px; max-width: 280px; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--cream-dim); }
.footer-col a:hover { color: var(--amber-900); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--navy-border);
  font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Browse page ============ */
.browse-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--navy-border); }
.browse-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.browse-hero p { color: var(--cream-dim); max-width: 560px; }

.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 560px;
}
.search-bar input {
  flex: 1;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--cream);
  font-size: 0.92rem;
}
.search-bar input:focus { outline: none; border-color: var(--amber-500); }

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0 90px;
}
.filters {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--cream-dim);
  padding: 7px 0; cursor: pointer;
}
.filter-option input { accent-color: var(--amber-500); width: 15px; height: 15px; }
.filter-option:hover { color: var(--cream); }
.filter-reset { font-size: 0.82rem; color: var(--amber-900); margin-top: 18px; display: inline-block; }

.results-count { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }

@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ============ Pitch detail page ============ */
.pitch-hero {
  padding: 40px 0 0;
}
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--amber-900); }

.pitch-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding-bottom: 90px;
}

.pitch-media {
  height: 380px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
  border: 1px solid var(--navy-border);
}

.pitch-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.pitch-title-row h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cat-pill {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--amber-900); color: var(--amber-400);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.pitch-detail-oneliner { color: var(--cream-dim); font-size: 1.05rem; margin-bottom: 30px; }

.founder-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--navy-800); border: 1px solid var(--navy-border); border-radius: var(--radius-sm);
  margin-bottom: 36px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--amber-900);
}
.founder-strip .name { font-weight: 600; font-size: 0.94rem; }
.founder-strip .role { font-size: 0.8rem; color: var(--muted); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--navy-border); margin-bottom: 30px; }
.tab-btn {
  padding: 12px 4px; margin-right: 22px;
  font-size: 0.92rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--cream); border-color: var(--amber-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 1.1rem; margin: 22px 0 10px; }
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel p { color: var(--cream-dim); font-size: 0.94rem; margin-bottom: 14px; }
.tab-panel ul { margin: 10px 0 18px 0; }
.tab-panel ul li { color: var(--cream-dim); font-size: 0.94rem; padding: 6px 0 6px 20px; position: relative; }
.tab-panel ul li::before { content: "—"; position: absolute; left: 0; color: var(--amber-900); }

.use-of-funds .mock-bar-row .track { height: 8px; background: var(--navy-700); border-radius: 999px; overflow: hidden; }
.use-of-funds .mock-bar-row .track div { height: 100%; background: var(--amber-500); }

/* Backing sidebar */
.back-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
  align-self: start;
}
.back-card .raised { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 4px; }
.back-card .raised span { font-size: 1rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.back-card .goal-line { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.back-card .progress-track { height: 9px; margin-bottom: 20px; }
.back-card .stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--navy-border); font-size: 0.86rem; }
.back-card .stat-row span:last-child { font-weight: 600; }
.back-card .stat-row:last-of-type { border-bottom: none; }

.amount-input-group { margin: 22px 0 16px; }
.amount-input-group label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.amount-input-wrap {
  display: flex; align-items: center;
  background: var(--navy-900); border: 1px solid var(--navy-border); border-radius: var(--radius-sm);
  padding: 4px 4px 4px 16px;
}
.amount-input-wrap span { color: var(--amber-900); font-weight: 600; margin-right: 4px; }
.amount-input-wrap input {
  flex: 1; background: transparent; border: none; color: var(--cream);
  padding: 10px 4px; font-size: 1rem;
}
.amount-input-wrap input:focus { outline: none; }
.chip-row { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 999px;
  background: var(--navy-900); border: 1px solid var(--navy-border);
  font-size: 0.8rem; color: var(--cream-dim);
}
.chip.active, .chip:hover { border-color: var(--amber-500); color: var(--amber-900); }

.escrow-note {
  display: flex; gap: 10px;
  font-size: 0.78rem; color: var(--muted);
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--navy-border);
}

@media (max-width: 980px) {
  .pitch-detail-layout { grid-template-columns: 1fr; }
  .back-card { position: static; }
}

/* ============ Mobile hero/nav fine tune ============ */
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ Mobile nav drawer ============ */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy-950);
  z-index: 200;
  padding: 28px;
  flex-direction: column;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .close-drawer { align-self: flex-end; font-size: 1.6rem; color: var(--cream); margin-bottom: 30px; }
.mobile-drawer a {
  font-size: 1.2rem; font-family: var(--serif);
  padding: 16px 0; border-bottom: 1px solid var(--navy-border);
}
.mobile-drawer .nav-actions { margin-top: 30px; flex-direction: column; }
.mobile-drawer .nav-actions .btn { width: 100%; }

/* ============ Nav auth area ============ */
.nav-auth-links { display: flex; align-items: center; gap: 14px; }

/* ============ Auth pages ============ */
.auth-shell {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse 600px 400px at 85% -10%, rgba(240,169,74,0.10), transparent 60%),
    radial-gradient(ellipse 500px 400px at 5% 10%, rgba(76,175,130,0.08), transparent 60%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--cream-dim); font-size: 0.92rem; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 8px; font-weight: 500; }
.form-input {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--cream);
  font-size: 0.94rem;
  font-family: var(--sans);
}
.form-input:focus { outline: none; border-color: var(--amber-500); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
.form-error {
  display: none;
  background: rgba(217, 91, 91, 0.1);
  border: 1px solid rgba(217, 91, 91, 0.35);
  color: #a53b3b;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.form-error.show { display: block; }
.form-note-success {
  display: none;
  background: rgba(76, 175, 130, 0.1);
  border: 1px solid rgba(76, 175, 130, 0.35);
  color: var(--green-300);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.form-note-success.show { display: block; }

.auth-switch { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.auth-switch a { color: var(--amber-900); font-weight: 600; }

.auth-divider-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--navy-border);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============ Network / people directory ============ */
.avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--amber-900);
  flex-shrink: 0;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.person-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.person-card .avatar-lg { margin: 0 auto 16px; }
.person-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.person-card .headline { font-size: 0.84rem; color: var(--amber-900); margin-bottom: 10px; min-height: 1.2em; }
.person-card .bio { font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 18px; min-height: 2.6em; }
.person-card .btn { width: 100%; }
.btn-connected {
  background: transparent;
  border: 1px solid var(--green-500);
  color: var(--green-300);
}
.btn-connected:hover { background: rgba(76, 175, 130, 0.08); }

.connections-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.connection-chip {
  flex-shrink: 0;
  width: 150px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
}
.connection-chip .avatar-lg { width: 48px; height: 48px; font-size: 1rem; margin: 0 auto 10px; }
.connection-chip .name { font-size: 0.86rem; font-weight: 600; margin-bottom: 4px; }
.connection-chip .headline { font-size: 0.72rem; color: var(--muted); }

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--navy-border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
}

.gate-panel {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.gate-panel h2 { font-size: 1.4rem; margin-bottom: 12px; }
.gate-panel p { color: var(--cream-dim); font-size: 0.92rem; margin-bottom: 26px; }
.gate-panel .hero-ctas { justify-content: center; }

/* ============ Profile page ============ */
.profile-header {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.profile-header .meta h1 { font-size: 1.7rem; margin-bottom: 6px; }
.profile-header .meta .headline { color: var(--amber-900); font-size: 0.95rem; margin-bottom: 6px; }
.profile-header .meta .joined { color: var(--muted); font-size: 0.8rem; }
.profile-header .actions { margin-left: auto; display: flex; gap: 10px; }

.profile-panel {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
}
.profile-panel h2 { font-size: 1.05rem; margin-bottom: 18px; }
.profile-panel .bio-text { color: var(--cream-dim); font-size: 0.94rem; }
.save-row { display: flex; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .people-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: flex-start; text-align: left; }
  .profile-header .actions { margin-left: 0; }
}

/* ============ Select inputs (post-idea form) ============ */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234c5670' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ============ Blog ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--amber-500); }
.blog-card .blog-date { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card .dek { font-size: 0.88rem; color: var(--cream-dim); flex: 1; margin-bottom: 18px; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--amber-900); color: var(--amber-400);
  padding: 4px 10px; border-radius: 999px;
}
.blog-card .read-mins { font-size: 0.78rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--navy-border); }

.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 48px;
}
.blog-featured h2 { font-size: 1.8rem; margin: 12px 0 16px; }
.blog-featured .dek { color: var(--cream-dim); margin-bottom: 24px; }
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.article-shell { max-width: 720px; margin: 0 auto; padding: 48px 28px 100px; }
.article-shell .blog-date { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.article-shell h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.article-shell .dek { font-size: 1.1rem; color: var(--cream-dim); margin-bottom: 30px; }
.article-body { font-size: 1.02rem; line-height: 1.75; color: var(--cream-dim); }
.article-body h3 { color: var(--cream); font-size: 1.25rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 8px; }

/* ============ News ============ */
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--navy-border);
}
.news-rank { font-family: var(--serif); font-size: 1.1rem; color: var(--navy-600); width: 28px; flex-shrink: 0; padding-top: 2px; }
.news-item .news-main { flex: 1; }
.news-item h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.4; }
.news-item h3 a:hover { color: var(--amber-900); }
.news-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.news-meta .source { color: var(--amber-900); font-weight: 600; }
.news-empty { padding: 60px 24px; text-align: center; color: var(--muted); }

/* ============ Post idea page ============ */
.post-idea-shell { max-width: 720px; margin: 0 auto; padding: 48px 28px 100px; }
.post-idea-shell .form-panel {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 30px 0 16px; }
.form-section-label:first-child { margin-top: 0; }
