/* ---------------------------------------------------------------------
   Crowbe landing — stylesheet
   Header #24C9F2 / Body #E1EAED / Footer #0BACD4 as specified. Ink is a
   deep navy for contrast against all three (all are bright, cool blues),
   with a single warm amber accent reserved for the ledger — the one
   signature element on the page.
------------------------------------------------------------------------ */

:root {
  --header: #24C9F2;
  --body-bg: #E1EAED;
  --footer: #0BACD4;

  --ink: #0B2740;
  --ink-soft: #4A6478;
  --card: #FFFFFF;
  --line: rgba(11, 39, 64, 0.14);
  --accent: #E3A73E;
  --accent-ink: #5A3B0A;
  --negative: #C24444;
  --positive: #1F8F5F;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--body-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

button, input, select {
  font-family: inherit;
  font-size: 1rem;
}

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

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Header
------------------------------------------------------------------------ */

.site-header {
  background: var(--header);
  border-bottom: 1px solid rgba(11, 39, 64, 0.1);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; text-decoration: underline; }

.lang-switch {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 30px;
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------------------------------------------------------------------
   Hero + signature ledger ticker
------------------------------------------------------------------------ */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  min-height: 46px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(11,39,64,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-block { width: 100%; }

/* --- ledger card (signature element) --- */

.ledger-card {
  background: var(--ink);
  color: #EAF3F8;
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  box-shadow: 0 20px 40px rgba(11, 39, 64, 0.22);
  overflow: hidden;
}

.ledger-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(234, 243, 248, 0.65);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 1.8s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.ticker {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ticker-row {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.9fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 11px 4px;
  border-top: 1px solid rgba(234, 243, 248, 0.1);
}
.ticker-row:first-child { border-top: none; }

.ticker.is-pulsing .ticker-row:first-child {
  animation: rowIn 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ticker.is-pulsing .ticker-row:first-child { animation: none; }
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticker-ref { color: rgba(234, 243, 248, 0.6); }
.ticker-type { color: #EAF3F8; }
.ticker-amount { text-align: right; font-weight: 600; }
.ticker-time { text-align: right; color: rgba(234, 243, 248, 0.5); font-size: 12px; }

.is-positive { color: #7CDDB0; }
.is-negative { color: #F3A5A5; }

/* ---------------------------------------------------------------------
   Sections
------------------------------------------------------------------------ */

section { padding: 64px 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}

/* --- how it works --- */

.how { background: rgba(11, 39, 64, 0.035); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step-index {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent-ink);
  background: rgba(227, 167, 62, 0.18);
  width: fit-content;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-title { font-size: 18px; margin-bottom: 8px; }
.step-body { color: var(--ink-soft); font-size: 15px; }

/* --- transparency --- */

.transparency-body {
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 32px;
  font-size: 16px;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.point-card {
  padding: 4px 0 0 0;
}

.point-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 12px;
  position: relative;
}
.point-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translate(1px, -1px) rotate(-45deg);
  top: 8px; left: 6px;
}

.point-title { font-size: 16.5px; margin-bottom: 6px; }
.point-body { color: var(--ink-soft); font-size: 14.5px; }

.ledger-sample {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.ledger-sample-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sample-title { font-size: 17px; font-weight: 700; }
.sample-note { color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; display: block; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}

.mono { font-family: var(--font-mono); }

/* --- team teaser --- */

.team-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #EAF3F8;
  border-radius: var(--radius);
  padding: 34px 36px;
  flex-wrap: wrap;
}

.team-teaser .eyebrow { color: rgba(234,243,248,0.6); }
.team-teaser .section-title { color: #fff; margin-bottom: 8px; }
.team-teaser p { color: rgba(234,243,248,0.75); max-width: 46ch; }
.team-teaser-copy { flex: 1 1 320px; }

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}
.link-arrow:hover { text-decoration: underline; }

/* --- forms --- */

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.form-card p.form-body {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
.field input:focus, .field select:focus { border-color: var(--ink); }

.amount-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.role-option {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  display: block;
}

.role-option input {
  margin-right: 8px;
}

.role-option:has(input:checked),
.role-option.is-selected {
  border-color: var(--ink);
  background: rgba(11, 39, 64, 0.04);
}

.role-option-title { font-weight: 700; font-size: 15px; }
.role-option-desc { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.form-msg {
  min-height: 20px;
  font-size: 13.5px;
  margin-top: 12px;
  font-weight: 600;
}
.form-msg.is-ok { color: var(--positive); }
.form-msg.is-error { color: var(--negative); }

/* ---------------------------------------------------------------------
   Footer
------------------------------------------------------------------------ */

.site-footer {
  background: var(--footer);
  color: var(--ink);
  padding: 40px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: 17px; max-width: 30ch; }

.footer-col { font-size: 13.5px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(11,39,64,0.65);
  margin-bottom: 8px;
  display: block;
}
.footer-col a { text-decoration: underline; }
.footer-disclaimer {
  font-size: 12.5px;
  color: rgba(11,39,64,0.75);
  max-width: 74ch;
  border-top: 1px solid rgba(11,39,64,0.18);
  padding-top: 16px;
  margin-bottom: 10px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(11,39,64,0.65);
}

/* ---------------------------------------------------------------------
   Team page
------------------------------------------------------------------------ */

.team-hero { padding: 56px 0 40px; text-align: left; }
.back-link { display: inline-block; margin-bottom: 22px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.team-subtitle { color: var(--ink-soft); font-size: 16px; margin-top: 10px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}

.person-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.person-avatar {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--line);
  margin-bottom: 16px;
}

.person-name { font-size: 19px; font-weight: 700; margin-bottom: 2px; }
.person-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  background: rgba(227, 167, 62, 0.18);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.person-bio { color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------------
   Responsive — tablet (≤900px)
------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .header-row { padding: 16px 20px; }

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

  .steps-grid, .points-grid, .forms-grid, .team-grid { grid-template-columns: 1fr; }

  .team-teaser { padding: 28px; }
}

/* ---------------------------------------------------------------------
   Responsive — phone (≤560px)
------------------------------------------------------------------------ */

@media (max-width: 560px) {
  html, body { font-size: 15px; }
  .wrap { padding: 0 16px; }

  .header-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 14px; }
  .lang-switch { order: 2; }

  .hero { padding: 36px 0 40px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }

  section { padding: 44px 0; }

  .ticker-row { grid-template-columns: 1fr 1fr; row-gap: 2px; }
  .ticker-time { display: none; }

  .amount-row { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }

  .form-card { padding: 22px; }

  .team-teaser { flex-direction: column; align-items: flex-start; }

  .footer-grid { flex-direction: column; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .btn, input, select, .lang-btn { min-height: 44px; }
  input, select { font-size: 16px; }

  table { font-size: 12.5px; }
  thead th, tbody td { padding: 8px 6px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .brand { font-size: 19px; }
}
