html,
body {
  width: 100%;
  overflow-x: hidden;
}

:root {
  color-scheme: light;
  --ink: #0c1216;
  --muted: #46535a;
  --accent: #1e3d2f;
  --accent-2: #d2a24c;
  --surface: #f6f2ec;
  --panel: #ffffff;
  --line: #dde3e7;
  --soft: #f3e9db;
  --success: #1e6f50;
  --warn: #a66b1e;
  --shadow: 0 28px 60px rgba(12, 18, 22, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f0e8 0%, #f8f5f0 40%, #eef3f4 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.container.wide {
  width: min(1320px, 96vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 18, 22, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 18, 22, 0.08);
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow: hidden;
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  align-items: center;
}

.header-cta .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
}

.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy.centered {
  text-align: center;
  margin: 0 auto;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-copy.centered h1,
.hero-copy.centered p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 3.8rem);
}

.lead {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--panel);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-row h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.hero-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-tagline {
  font-size: 1.1rem;
  color: var(--ink);
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.panel-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.hero-sweep {
  position: absolute;
  inset: 30% -20% auto -10%;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(210, 162, 76, 0.3), transparent 60%);
  transform: rotate(-4deg);
  pointer-events: none;
}

.section {
  padding: 3.25rem 0;
}

.section.alt {
  background: var(--surface);
}

body[data-page="landing"] main > .section {
  background: var(--surface);
}

body[data-page="landing"] main > .section:nth-of-type(even) {
  background: var(--soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-lead {
  max-width: 750px;
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  align-items: center;
  min-width: min(520px, 100%);
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.filters > * {
  min-width: 170px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: #fff;
}

input[readonly],
textarea[readonly],
select[readonly] {
  background: #f0f3f5;
  color: var(--muted);
  border-color: rgba(12, 18, 22, 0.1);
  cursor: not-allowed;
}

.directory-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#featuredGrid,
#faqStartupsGrid,
#applyFeaturedGrid,
#investorRecommendations {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

#featuredGrid > *,
#faqStartupsGrid > *,
#applyFeaturedGrid > *,
#investorRecommendations > * {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

@media (min-width: 1000px) {
  #featuredGrid,
  #faqStartupsGrid,
  #applyFeaturedGrid,
  #investorRecommendations {
    padding-right: 3rem;
  }

  #featuredGrid > *,
  #faqStartupsGrid > *,
  #applyFeaturedGrid > *,
  #investorRecommendations > * {
    flex-basis: 320px;
  }
}

.profile-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 3fr 1fr;
  align-items: start;
}

.startup-main {
  display: grid;
  gap: 1.25rem;
}

.profile-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.profile-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-page="startupProfile"] {
  font-size: 0.95rem;
  --startup-section-padding: 2rem;
  --startup-aside-top: calc(var(--startup-section-padding) + 4.5rem);
  --startup-aside-bottom: var(--startup-section-padding);
}

body[data-page="startupProfile"] .section {
  padding: var(--startup-section-padding) 0;
}

body[data-page="startupProfile"] .profile-card,
body[data-page="startupProfile"] .profile-sidecard {
  padding: 1.5rem;
  gap: 0.75rem;
}

body[data-page="startupProfile"] .profile-meta-row {
  gap: 0.75rem;
}

body[data-page="startupProfile"] .profile-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body[data-page="startupProfile"] .profile-title-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body[data-page="startupProfile"] .profile-title-line h2 {
  margin: 0;
}

body[data-page="startupProfile"] .badge {
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

body[data-page="startupProfile"] .profile-stats {
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

body[data-page="startupProfile"] .stat-card {
  padding: 0.65rem 0.85rem;
}

body[data-page="startupProfile"] .profile-actions {
  display: grid;
  gap: 0.5rem;
}

body[data-page="startupProfile"] .profile-action-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.5rem;
  align-items: center;
}

body[data-page="startupProfile"] .profile-action-row input {
  min-width: 0;
}

body[data-page="startupProfile"] .profile-action-row .primary {
  padding: 0.6rem 1.6rem;
  white-space: nowrap;
}

body[data-page="startupProfile"] .goal-progress {
  gap: 0.35rem;
}

@media (min-width: 801px) {
  body[data-page="startupProfile"] .profile-aside {
    position: fixed;
    top: var(--startup-aside-top);
    right: calc((100vw - min(1320px, 96vw)) / 2);
    width: calc((min(1320px, 96vw) - 2rem) / 4);
    max-height: calc(100vh - var(--startup-aside-top) - var(--startup-aside-bottom));
    overflow: auto;
    padding-top: 0;
  }
}

.profile-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #f6f2ec;
  border: 1px solid var(--line);
}

.stats-gap {
  margin-bottom: 1.5rem;
}

.stat-card-button {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.stat-card-button:hover {
  border-color: rgba(12, 18, 22, 0.25);
}

.stat-card-button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 111, 80, 0.15);
}

.stat-card h4 {
  margin: 0.35rem 0 0;
}

.goal-progress {
  display: grid;
  gap: 0.45rem;
}

.goal-progress-bar {
  width: 100%;
  height: 6px;
  background: #e6e0d8;
  border-radius: 999px;
  overflow: hidden;
}

.goal-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.goal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-goal {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.card-goal .goal-progress-meta {
  font-size: 0.75rem;
}

.card-goal-progress {
  margin-top: 0.65rem;
}

.card-goal-progress .goal-progress-meta {
  justify-content: space-between;
}

.card-goal-amount {
  font-size: 0.75rem;
  color: var(--muted);
}

.highlights-block {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #f8f4ee;
  border: 1px solid var(--line);
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#founderStartupCard .profile-actions {
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 0.75rem);
}

#founderStartupCard .profile-actions .primary {
  padding: clamp(0.45rem, 2vw, 0.65rem) clamp(1.4rem, 6vw, 3.6rem);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  white-space: nowrap;
}

#founderStartupCard .profile-actions .icon-only {
  width: clamp(34px, 8vw, 44px);
  height: clamp(34px, 8vw, 44px);
}

#founderStartupCard .profile-actions .icon-only svg {
  width: clamp(16px, 4vw, 18px);
  height: clamp(16px, 4vw, 18px);
}

.inline-note {
  font-size: 0.85rem;
  color: var(--warn);
  margin: 0;
}

.profile-aside {
  display: grid;
  gap: 1rem;
  align-self: start;
  padding-top: 3.25rem;
}

.profile-sidecard {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.aside-block {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 24px rgba(12, 18, 22, 0.08);
}


.status-card p {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
}

.status-card .status-lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.status-text {
  font-weight: 600;
}

.status-text.success {
  color: var(--success);
}

.status-text.warn {
  color: var(--warn);
}

.highlight-callout {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(210, 162, 76, 0.15);
  border: 1px solid rgba(210, 162, 76, 0.4);
  color: #3a2b15;
  font-weight: 600;
}

.overview-text {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(12, 18, 22, 0.08);
  color: var(--muted);
  line-height: 1.7;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.list li {
  color: var(--muted);
  line-height: 1.4;
}

.video-frame {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

body[data-page="startupProfile"] .video-frame {
  padding: 0.6rem;
  aspect-ratio: 18 / 9;
}

.video-frame iframe {
  border: none;
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
}

.video-frame video {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.video-frame .startup-thumbnail {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.dashboard-grid-full {
  grid-template-columns: 1fr;
}

body[data-page="founderDashboard"] .dashboard-grid + .card {
  margin-top: 2rem;
}


.inline-form {
  display: grid;
  gap: 0.5rem;
}

.inline-form button {
  justify-self: start;
}

.editable-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.editable-list button {
  border: none;
  background: none;
  color: var(--warn);
  cursor: pointer;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-accordion {
  display: grid;
  gap: 0.75rem;
}

.faq-accordion .faq-accordion-item {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.faq-accordion summary {
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

.faq-accordion details[open] summary::after {
  content: "-";
}

.faq-accordion p {
  margin: 0.75rem 0 0;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(12, 18, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  animation: rise 0.6s ease both;
}

.investor-interests-stack {
  display: grid;
  gap: 1.5rem;
}

#investorInterestsEmpty .primary {
  align-self: flex-start;
  width: auto;
}

.access-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.access-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 180px;
  background: #e6e6e6;
  display: block;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
}

.card-highlight {
  font-size: 0.9rem;
}

.card-title-link {
  font-weight: 600;
  color: var(--ink);
}

.card-title-link:hover {
  color: var(--accent);
}

.card-tagline-link {
  color: var(--ink);
}

.card-tagline-link:hover {
  color: var(--accent);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: var(--soft);
  color: var(--accent);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.verified {
  background: rgba(30, 111, 80, 0.12);
  color: var(--success);
}

.badge.review {
  background: rgba(166, 107, 30, 0.12);
  color: var(--warn);
}

.is-hidden {
  display: none;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.link {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.application {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.profile-details-card {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
}

.application.is-hidden {
  display: none;
}

.progress {
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  font-weight: 600;
  color: var(--muted);
}

.dot.active {
  background: var(--accent);
  color: #fff;
}

.form-step {
  display: none;
  gap: 1rem;
}

.form-step.active {
  display: grid;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  min-width: 0;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-stack.is-hidden {
  display: none;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rich-editor-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.rich-editor-field {
  display: grid;
  gap: 0.5rem;
}

.rich-label {
  font-weight: 600;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rich-toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.rich-toolbar button:hover {
  border-color: rgba(12, 18, 22, 0.3);
}

.rich-toolbar button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rich-editor {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

.rich-editor:focus {
  outline: 2px solid rgba(30, 111, 80, 0.2);
  border-color: var(--accent);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor.is-disabled,
.rich-editor[contenteditable="false"] {
  background: #f0f3f5;
  color: var(--muted);
}

.rich-content {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.rich-content p {
  margin: 0;
}

.rich-content ul,
.rich-content ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 0.5rem 0 0.2rem;
  color: var(--ink);
}

.profile-save-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.9rem;
  justify-content: flex-start;
  white-space: nowrap;
  align-self: flex-start;
}

.application input,
.application select,
.application textarea {
  width: 100%;
  max-width: 100%;
}

.application .checkbox input {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.choice-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.choice-button {
  position: relative;
  cursor: pointer;
}

.choice-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-button span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.choice-button input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.choice-button input:focus-visible + span {
  outline: 2px solid rgba(30, 111, 80, 0.3);
  outline-offset: 2px;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tabs-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-gutter: stable;
}

.tabs-scroll .tab {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  padding: clamp(0.35rem, 1.6vw, 0.5rem) clamp(0.7rem, 3.2vw, 1rem);
}

.tab {
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tab.tab-divider {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.tab.tab-divider::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 1px;
  height: 60%;
  background: var(--line);
  transform: translateY(-50%);
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.table {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  align-items: center;
}

.table-row > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
}

.table-row > span.table-actions {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

body[data-page="admin"] .table-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
}

body[data-page="admin"] .table-actions .tiny {
  font-size: 0.64rem;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}

body[data-page="admin"] .table-row {
  grid-template-columns: 1.35fr 0.85fr 0.9fr 1.6fr;
}

body[data-page="admin"] .table-row.wide {
  grid-template-columns: 1.45fr 0.85fr 0.9fr 1fr 2.1fr;
}

.table-row.header > span {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
}

.table-row.wide {
  grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr 1.6fr;
}

#investorInterestsTable .table-row.wide {
  grid-template-columns: 1.4fr 0.85fr 0.85fr 1fr 0.9fr 1fr;
}

.table-metrics {
  display: grid;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.table-metrics strong {
  color: var(--ink);
}

.table-row.details {
  display: none;
  grid-template-columns: 1fr;
}

.table-row.details.show {
  display: grid;
}

.details-block {
  display: grid;
  gap: 0.4rem;
}

.details-block h4 {
  margin: 0 0 0.5rem 0;
}

.thread-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.thread-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.thread-column {
  display: grid;
  gap: 0.75rem;
}

.thread-group-list {
  display: grid;
  gap: 0.5rem;
}

.thread-group-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.thread-group-item.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 111, 80, 0.15);
}

.thread-group-item .meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  body[data-page="investorDashboard"] .thread-grid > .card + .card {
    margin-top: 0.75rem;
  }
}

.thread-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.thread-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.thread-form {
  display: grid;
  gap: 0.6rem;
}

.table-row.header {
  background: #f0f3f5;
  font-weight: 600;
}

.pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill.success {
  background: rgba(30, 111, 80, 0.15);
  color: var(--success);
}

.pill.warn {
  background: rgba(166, 107, 30, 0.2);
  color: var(--warn);
}

.status-pill {
  padding: 0.4rem 1rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.status-pill[href] {
  cursor: pointer;
}

.status-pill[href]:hover {
  border-color: rgba(12, 18, 22, 0.3);
}

.footer {
  background: #12181c;
  color: #f4f4f4;
  padding: 3rem 0 2.25rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  max-width: 360px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  justify-content: end;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}

.footer-col h5 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .small {
  margin: 0;
}

.small {
  font-size: 0.85rem;
}

.primary,
.secondary,
.ghost,
.tiny {
  border-radius: 999px;
  padding: 0.65rem 3.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  background: var(--accent-2);
  color: #2c1f06;
}

.ghost {
  background: transparent;
  border-color: var(--line);
}

.tiny {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-color: var(--line);
  background: #fff;
}

.tiny.ghost {
  background: transparent;
}

.primary:disabled,
.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
}

.icon-only svg {
  width: 18px;
  height: 18px;
}

.icon-only:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#founderStartupCard {
  position: relative;
}

.copy-toast {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #0c1216;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 20;
}

.modal.show {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 15, 0.55);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: min(520px, 90vw);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  animation: rise 0.4s ease both;
}

.modal-card-scroll {
  max-height: calc(100vh - 3rem);
  overflow: hidden;
}

.modal-scroll-body {
  overflow-y: auto;
  max-height: calc(100vh - 12rem);
  padding-right: 0.25rem;
}

.modal-sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  box-shadow: 0 -10px 12px rgba(0, 0, 0, 0.04);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn {
  border: none;
  background: none;
  font-size: 1.5rem;
  transform: rotate(45deg);
  cursor: pointer;
}

.disclaimer {
  font-size: 0.85rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--success);
}

.form-status.is-error {
  color: var(--warn);
}

.application label.has-error input,
.application label.has-error select,
.application label.has-error textarea {
  border-color: var(--warn);
  box-shadow: 0 0 0 2px rgba(166, 107, 30, 0.18);
}

.field-error-message {
  font-size: 0.8rem;
  color: var(--warn);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-mark img {
    width: 20px;
    height: 20px;
  }

  .brand-name {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .header-cta {
    gap: 0.5rem;
  }

  .status-pill {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    width: min(260px, 92vw);
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(12, 18, 22, 0.12);
    z-index: 12;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .nav-login {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    width: 16px;
  }

  .menu-icon::before {
    top: -5px;
  }

  .menu-icon::after {
    top: 5px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.wide {
    grid-template-columns: 1fr;
  }

  #investorInterestsTable .table-row.wide {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .form-actions {
    justify-content: flex-start;
  }

  .form-actions button {
    width: 100%;
  }

  .profile-save-row {
    justify-content: flex-start;
  }

  .profile-save-row button {
    width: 100%;
  }

  .application .form-actions .primary[type="submit"] {
    font-size: 0.9rem;
    padding: 0.6rem 2.4rem;
  }

  .application .checkbox {
    font-size: 0.8rem;
    white-space: normal;
    align-items: flex-start;
    line-height: 1.35;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    padding-top: 0;
    position: static;
    top: auto;
    height: auto;
    right: auto;
    width: auto;
    max-height: none;
  }

  .profile-sidecard {
    position: static;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1000px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
