/* The Last Business Card — Trust Center */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

:root {
  --text-primary: #18181d;
  --text-heading: #151414;
  --text-secondary: #535257;
  --link-purple: #8e34e3;
  --accent-purple: #771fcb;
  --border-color: #dcdce8;
  --pill-bg: #d3fce6;
  --pill-text: #00714b;
  --check-green: #12a66d;
  --table-head-bg: #fafafa;
  --banner-start: #f4d3cd;
  --banner-end: #f5f4f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, Ubuntu, 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link-purple); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 73px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
}

.site-header .logo img {
  height: 38px;
  display: block;
}

.site-header .divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

.site-header .site-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-heading);
  text-decoration: none;
}

/* ---------- Banner ---------- */

.hero-banner {
  height: 400px;
  background: linear-gradient(180deg, var(--banner-start) 0%, var(--banner-end) 100%);
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  border-bottom: 1px solid var(--border-color);
}

.tabs a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 2px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a.active {
  color: var(--text-heading);
  border-bottom-color: var(--accent-purple);
}

.tabs a:hover { color: var(--text-heading); }

/* ---------- Overview card ---------- */

.overview-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 26px;
  margin-top: 28px;
}

.overview-card h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.overview-card h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.overview-card p { margin-bottom: 16px; }

.overview-card ul {
  margin: 0 0 16px 0;
  padding-left: 28px;
}

.overview-card li { margin-bottom: 8px; }

.overview-card hr {
  border: none;
  border-top: 1px solid #b6b6bf;
  margin: 28px 0;
}

.overview-card > :last-child { margin-bottom: 0; }

/* ---------- Overview lower section ---------- */

.overview-columns {
  display: grid;
  grid-template-columns: 354px 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-bottom: 64px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
}

.view-all {
  margin-left: auto;
  font-size: 16px;
}

.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  line-height: 20px;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.updated-pill svg { flex: none; }

.compliance-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.compliance-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.compliance-card .framework-name {
  font-size: 16px;
  color: var(--text-primary);
}

.overview-columns > * { min-width: 0; }

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

.controls-grid > * { min-width: 0; }

.control-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.control-card .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  margin-bottom: 18px;
}

.control-card .card-title span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: underline;
}

.control-card .card-title svg { color: #777583; flex: none; }

.control-card ul {
  list-style: none;
}

.control-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-primary);
}

.control-card li svg { flex: none; }

.control-card li .control-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-card .view-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
}

/* ---------- Controls page ---------- */

.controls-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.controls-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-heading);
}

.controls-search {
  margin-left: auto;
  position: relative;
}

.controls-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777583;
  pointer-events: none;
}

.controls-search input {
  width: 360px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px 0 38px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
}

.controls-search input:focus {
  outline: 2px solid var(--accent-purple);
  outline-offset: -1px;
}

.controls-search input::placeholder { color: #777583; }

.controls-layout {
  display: grid;
  grid-template-columns: 212px 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 64px;
}

.controls-nav {
  position: sticky;
  top: 97px;
  align-self: start;
  padding: 12px 0;
}

.controls-nav a {
  display: block;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
}

.controls-nav a:hover { background: #f4f4f8; }

.controls-section { margin-bottom: 36px; }

.controls-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}

.controls-table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.controls-table .table-head {
  display: flex;
  justify-content: space-between;
  background: var(--table-head-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.control-row:last-child { border-bottom: none; }

.control-row .control-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.control-row .control-desc {
  font-size: 16px;
  color: var(--text-primary);
  white-space: pre-line;
}

.control-row svg { flex: none; }

.search-empty {
  display: none;
  color: var(--text-secondary);
  padding: 24px 0;
}

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

.site-footer {
  padding: 48px 0 40px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .overview-columns { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .controls-layout { grid-template-columns: 1fr; }
  .controls-nav { display: none; }
  .hero-banner { height: 300px; }
  .controls-search { margin-left: 0; width: 100%; }
  .controls-search input { width: 100%; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 16px; }
  .site-header .site-title { font-size: 14px; }
  .hero-banner { height: 180px; }
  .overview-card { padding: 20px; }
  .overview-card h1 { font-size: 26px; line-height: 32px; }
  .overview-card h2 { font-size: 22px; line-height: 28px; }
}
