/* ---------------------------------------------------------------
   True Compliance Public API – landing page styles
   Palette and typography match developer.truecompliance.co.uk
   --------------------------------------------------------------- */

:root {
  --tc-blue: #2D68C5;
  --tc-blue-hover: #1f4f9c;
  --tc-text: #212121;
  --tc-text-muted: #5b6770;
  --tc-border: #e6e8eb;
  --tc-bg: #ffffff;
  --tc-bg-soft: #f7f8fa;
  --tc-shadow: 0 1px 2px rgba(33, 33, 33, 0.04),
               0 4px 12px rgba(33, 33, 33, 0.06);
  --tc-shadow-hover: 0 2px 4px rgba(45, 104, 197, 0.08),
                     0 8px 24px rgba(45, 104, 197, 0.12);
  --tc-radius: 8px;
  --tc-max-width: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--tc-blue);
  text-decoration: none;
}

a:hover {
  color: var(--tc-blue-hover);
  text-decoration: underline;
}

/* Top bar ------------------------------------------------------- */
.tc-topbar {
  background: var(--tc-bg);
  border-bottom: 1px solid var(--tc-border);
  padding: 14px 24px;
}

.tc-topbar__inner {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-topbar__logo {
  height: 28px;
  width: auto;
  display: block;
}

.tc-topbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-text);
  letter-spacing: 0.1px;
}

/* Hero ---------------------------------------------------------- */
.tc-hero {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 64px 24px 24px;
  text-align: center;
}

.tc-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tc-blue);
  margin-bottom: 16px;
}

.tc-hero__title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--tc-text);
}

.tc-hero__subtitle {
  font-size: 17px;
  color: var(--tc-text-muted);
  margin: 0 auto;
  max-width: 600px;
}

/* Cards --------------------------------------------------------- */
.tc-cards {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow);
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.tc-card:hover,
.tc-card:focus-visible {
  text-decoration: none;
  border-color: var(--tc-blue);
  box-shadow: var(--tc-shadow-hover);
  transform: translateY(-1px);
  outline: none;
}

.tc-card__badge {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 6px 10px;
  background: var(--tc-bg-soft);
  border: 1px solid var(--tc-border);
  border-radius: 999px;
  color: var(--tc-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.tc-card__body {
  flex: 1 1 auto;
}

.tc-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--tc-text);
}

.tc-card__desc {
  margin: 0;
  color: var(--tc-text-muted);
  font-size: 14.5px;
}

.tc-card__arrow {
  flex: 0 0 auto;
  color: var(--tc-blue);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.tc-card:hover .tc-card__arrow {
  transform: translateX(2px);
}

/* Footer -------------------------------------------------------- */
.tc-footer {
  border-top: 1px solid var(--tc-border);
  padding: 24px;
  text-align: center;
  color: var(--tc-text-muted);
  font-size: 13px;
}

/* Responsive ---------------------------------------------------- */
@media (max-width: 540px) {
  .tc-hero {
    padding-top: 40px;
  }
  .tc-hero__title {
    font-size: 28px;
  }
  .tc-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .tc-card__arrow {
    display: none;
  }
}
