/* cofound.app · public marketing site
   Tokens mirror php-web/style/main.css so the marketing page and the app read
   as one product. This file is intentionally self-contained: the marketing
   host does not load any app stylesheet. */

:root {
  --bg: #ffffff;
  --workspace: #f7f8fa;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --hair: #ecedf0;
  --hair-soft: #f2f4f6;
  --accent: #0073b7;
  --accent-hover: #005c92;
  --accent-soft: rgba(0, 115, 183, 0.1);
  --accent-bg: rgba(0, 115, 183, 0.06);
  --violet: #6d3fd8;
  --violet-soft: rgba(109, 63, 216, 0.1);
  --teal: #07947d;
  --teal-soft: rgba(7, 148, 125, 0.1);
  --amber: #d97b06;
  --amber-soft: rgba(217, 123, 6, 0.12);
  --up: #15803d;
  --up-soft: rgba(21, 128, 61, 0.1);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 66px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

p {
  color: var(--ink-2);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 115, 183, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 115, 183, 0.22);
}

.btn-ghost {
  background: #fff;
  border-color: var(--hair);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--muted-2);
  background: var(--hair-soft);
}

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

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 32, 55, 0.25);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.site-nav > a:not(.btn) {
  transition: color 0.15s ease;
}

.site-nav > a:not(.btn):hover {
  color: var(--accent);
}

.nav-login {
  margin-left: 4px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--muted-2);
  color: var(--ink);
}

.lang-toggle svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.lang-chev {
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.lang-toggle[aria-expanded="true"] .lang-chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--hair-soft);
  color: var(--ink);
}

.lang-menu button[aria-checked="true"] {
  color: var(--accent);
  font-weight: 600;
}

.lang-menu button[aria-checked="true"]::after {
  content: "✓";
  font-size: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
}

.nav-toggle-bars::before {
  transform: translateY(-5px);
}

.nav-toggle-bars::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

/* ===== SHARED SECTION ===== */
.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--tinted {
  background: var(--workspace);
  border-block: 1px solid var(--hair);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 16px;
}

.section-lede,
.lede {
  font-size: 17px;
  color: var(--muted);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(720px 320px at 82% -8%, rgba(0, 115, 183, 0.14), transparent 70%),
    radial-gradient(520px 280px at 8% 0%, rgba(109, 63, 216, 0.1), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 62%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  margin-bottom: 20px;
}

.grad {
  display: block;
  background: linear-gradient(96deg, #0073b7 0%, #6d3fd8 58%, #07947d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-soft);
}

/* product preview */
.mock {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-soft);
}

.mock-dots {
  display: inline-flex;
  gap: 5px;
}

.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair);
}

.mock-dots i:nth-child(1) {
  background: #f3b7b7;
}

.mock-dots i:nth-child(2) {
  background: #f5d9a3;
}

.mock-dots i:nth-child(3) {
  background: #b6dfc6;
}

.mock-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.mock-chip {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.mock-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.mock-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: #fcfdfe;
}

.mock-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mock-kpi strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.mock-delta {
  font-size: 11px;
  color: var(--muted);
}

.mock-delta.is-up {
  color: var(--up);
}

.mock-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 6px;
  height: 104px;
  padding: 12px 12px 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 100% 34px;
}

.mock-chart span {
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(0, 115, 183, 0.75), rgba(0, 115, 183, 0.28));
}

.mock-chart span:nth-child(10),
.mock-chart span:nth-child(12) {
  background: linear-gradient(180deg, rgba(109, 63, 216, 0.7), rgba(109, 63, 216, 0.25));
}

.mock-list {
  margin-top: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--hair-soft);
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-file {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-2);
}

.mock-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-row:nth-child(2) .mock-tag {
  background: var(--up-soft);
  color: var(--up);
}

.mock-row:nth-child(3) .mock-tag {
  background: var(--amber-soft);
  color: var(--amber);
}

.mock-row .mono {
  color: var(--muted);
}

/* ===== FEATURES ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px 24px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #e2e6ec;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon--blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.feature-icon--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
}

.step-num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ===== SECURITY ===== */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
}

.security-copy h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  margin-bottom: 16px;
}

.security-copy .section-lede {
  margin-bottom: 26px;
}

.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
}

.security-list li {
  display: flex;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.security-icon {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
}

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

.security-list h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.security-list p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== CTA ===== */
.cta-band {
  padding: 56px 0;
  background: linear-gradient(108deg, #00537f 0%, var(--accent) 52%, #4a2bb0 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 30px);
  margin-bottom: 6px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

/* ===== 404 ===== */
.not-found {
  min-height: 56vh;
  display: flex;
  align-items: center;
}

.not-found-inner {
  max-width: 560px;
}

.not-found h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

.not-found .lede {
  margin-bottom: 28px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--hair);
  background: #fff;
  padding-top: 48px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

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

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-login {
  font-weight: 600;
  color: var(--accent);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--hair-soft);
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .mock {
    transform: none;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  .section {
    padding: 68px 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--hair);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav > a {
    padding: 11px 8px;
    border-radius: 8px;
  }

  .site-nav > a:not(.btn):hover {
    background: var(--hair-soft);
  }

  .nav-login {
    margin: 8px 0 0;
    justify-content: center;
  }

  .lang-switch {
    margin: 4px 0;
  }

  .lang-toggle {
    width: 100%;
    justify-content: center;
  }

  .lang-menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    border-color: var(--hair-soft);
  }

  .feature-grid,
  .steps,
  .security-list {
    grid-template-columns: 1fr;
  }

  .hero-points {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .mock-kpis {
    grid-template-columns: 1fr;
  }

  .mock-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mock-row .mono {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
