/* ============================================================
   ThinkTribal - shared design system
   Tokens, base type, header/footer, and page components.
   Canonical: do not invent new colours or type.
   ============================================================ */

/* ---- Self-hosted webfont: Satoshi (single family, all weights) ---- */
@font-face{font-family:'Satoshi';src:url('fonts/satoshi-400.woff2') format('woff2'),url('fonts/satoshi-400.woff') format('woff');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('fonts/satoshi-500.woff2') format('woff2'),url('fonts/satoshi-500.woff') format('woff');font-weight:500 600;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('fonts/satoshi-700.woff2') format('woff2'),url('fonts/satoshi-700.woff') format('woff');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('fonts/satoshi-900.woff2') format('woff2'),url('fonts/satoshi-900.woff') format('woff');font-weight:800 900;font-style:normal;font-display:swap;}

:root {
  --tt-charcoal:   #393837;
  --tt-near-black: #1D1D1D;
  --tt-soft-grey:  #DEDCDC;
  --tt-surface:    #FDF8F7;
  --tt-white:      #FFFFFF;
  --tt-teal:       #467886;
  --tt-marine:     #2C4B6E;
  --tt-orange:     #A0522D;
  --tt-font:       'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --tt-radius:     12px;
  --tt-bg:         var(--tt-surface);
  --tt-bg-alt:     var(--tt-soft-grey);
  --tt-fg:         var(--tt-charcoal);
  --tt-fg-muted:   #6b6a69;
  --tt-border:     rgba(57,56,55,0.14);
}
[data-theme="dark"] {
  --tt-bg: var(--tt-charcoal); --tt-bg-alt: var(--tt-near-black);
  --tt-fg: #fff; --tt-fg-muted: rgba(255,255,255,0.7);
  --tt-border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--tt-bg); color: var(--tt-fg); }
body { font-family: var(--tt-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; color: var(--tt-fg); text-wrap: balance; }
h1 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 2.6vw, 38px); }
h3 { font-size: 20px; }
p { text-wrap: pretty; }
a { color: var(--tt-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
/* Sector acronyms carry a plain-language definition on first use. */
abbr[title] { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
/* Visually-hidden: available to screen readers, removed from the visual layout. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Product video: falls back to the product wordmark if the video can't be displayed. */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-embed > video { width: 100%; height: 100%; display: block; }
.video-embed .video-fallback { position: absolute; inset: 0; display: none; flex-direction: column;
  gap: 16px; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.video-embed .video-fallback img { width: min(55%, 220px); height: auto; }
.video-embed .video-fallback a { color: #fff; font-size: 13px; text-decoration: underline; }
.video-embed.video-failed > video { display: none; }
.video-embed.video-failed .video-fallback { display: flex; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
/* Eyebrow/kicker/index labels retired as a design tell - kept as no-ops so stray markup stays invisible. */
.eyebrow, .sec-head .idx, .trust .label, .role-tag, .callout .kicker { display: none; }

/* ---- Header - Near-Black, always ---- */
.tt-header { background: var(--tt-near-black); padding: 18px 40px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tt-header .logo { width: 190px; display: block; }
.tt-header .logo img { width: 100%; height: auto; display: block; }
.tt-header nav { display: flex; gap: 26px; align-items: center; }
.tt-header nav a { color: #fff; font-size: 14px; font-weight: 400; }
.tt-header nav a.active { color: var(--tt-teal); font-weight: 500; }
.tt-header nav a:hover { color: var(--tt-teal); text-decoration: none; }
.tt-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 8px 14px; font-size: 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-family: var(--tt-font); }
.tt-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-teal); }

/* ---- Buttons ---- */
.btn-primary { background: var(--tt-teal); color: #fff; font-weight: 700; border-radius: 12px; padding: 14px 26px; border: none; font-size: 15px; display: inline-block; cursor: pointer; }
.btn-primary:hover { background: #3a6773; text-decoration: none; }
.btn-secondary { background: var(--tt-soft-grey); color: var(--tt-charcoal); font-weight: 500; border-radius: 12px; padding: 14px 26px; font-size: 15px; display: inline-block; }
[data-theme="dark"] .btn-secondary { background: var(--tt-near-black); color: #fff; }
.btn-secondary:hover { text-decoration: none; }
.btn-ghost { background: transparent; color: var(--tt-fg); font-weight: 500; padding: 14px 26px; border-radius: 12px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--tt-border); display: inline-block; }
.btn-ghost:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--tt-teal); }
.btn-ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.btn-ghost.on-dark:hover { box-shadow: inset 0 0 0 1px var(--tt-teal); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Sections & section headers ---- */
section { padding: 96px 0; }
section.alt { background: var(--tt-bg-alt); }
section.dark { background: var(--tt-near-black); color: #fff; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
.sec-head { display: block; max-width: 860px; margin-bottom: 56px; }
.sec-head h2 { max-width: 820px; }
.sec-head .lede { font-size: 18px; max-width: 720px; margin-top: 14px; color: var(--tt-fg); line-height: 1.55; }

/* ---- Hero ---- */
.hero { padding: 96px 0 80px; background: var(--tt-bg); }
.hero .row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 620px; margin: 20px 0 24px; }
.hero p { font-size: 18px; color: var(--tt-fg-muted); max-width: 560px; margin-bottom: 16px; line-height: 1.55; }
.hero .visual { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--tt-bg-alt); }

/* image-slot base sizing helper */
image-slot { display: block; background: var(--tt-bg-alt); }
[data-theme="dark"] image-slot { background: var(--tt-near-black); }
.imgfill { width: 100%; height: 100%; object-fit: cover; display: block; }
.product > img.imgfill { min-height: 420px; }

/* ---- Trust band ---- */
.trust { padding: 30px 0; background: var(--tt-bg-alt); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust .label { font-family: var(--tt-font); font-size: 12px; letter-spacing: 0.1em; color: var(--tt-fg-muted); }
.trust .marks { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.trust .mark { font-weight: 500; font-size: 15px; color: var(--tt-fg); opacity: 0.7; }
/* Certification lockups. CCS logo ships white (for dark surfaces); invert it on
   the light trust band so it reads as dark. Cyber Essentials badge is full-colour. */
.trust-logo { display: block; width: auto; }
.trust-logo.ce  { height: 66px; }
.trust-logo.ccs { height: 40px; opacity: 0.85; }
[data-theme="light"] .trust-logo.ccs { filter: invert(1); opacity: 0.72; }

/* ---- Generic media row ---- */
.media-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.media-row.flip { grid-template-columns: 1.2fr 1fr; }
.media-row p { font-size: 17px; line-height: 1.6; margin-bottom: 16px; color: var(--tt-fg); }
.square { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; }
.ratio-45 { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; }
.ratio-43 { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat { background: var(--tt-bg); border-radius: 12px; padding: 24px; }
[data-theme="dark"] .stat { background: var(--tt-near-black); }
section.alt .stat { background: var(--tt-bg); }
[data-theme="dark"] section.alt .stat { background: var(--tt-charcoal); }
.stat .num { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.stat .lbl { font-size: 12px; color: var(--tt-fg-muted); margin-top: 10px; line-height: 1.4; }

/* ---- Card grids (pillars / features / roles) ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--tt-bg-alt); border-radius: 12px; padding: 32px; }
[data-theme="dark"] .card { background: var(--tt-near-black); }
section.alt .card { background: var(--tt-bg); }
[data-theme="dark"] section.alt .card { background: var(--tt-charcoal); }
section.dark .card { background: #262524; }
.card h3 { margin-bottom: 12px; }
.card p .lead, .callout p .lead, .plan .lead { font-weight: 700; color: var(--tt-fg); }
.card p { font-size: 16px; color: var(--tt-fg-muted); line-height: 1.55; }
section.dark .card p { color: rgba(255,255,255,0.72); }

/* role card - has a footer tag */
.role-tag { font-family: var(--tt-font); font-size: 11px; letter-spacing: 0.08em; color: var(--tt-teal); margin-top: 18px; display: block; }

/* ---- Product blocks ---- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 12px; overflow: hidden; background: var(--tt-bg-alt); }
[data-theme="dark"] .product { background: var(--tt-near-black); }
.product .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.plogo { height: 34px; width: auto; align-self: flex-start; }
/* theme-aware product logo lockups */
.plogo-light { display: block; }
.plogo-dark { display: none; }
[data-theme="dark"] .plogo-light { display: none; }
[data-theme="dark"] .plogo-dark { display: block; }
.product ul { list-style: none; margin: 20px 0 0; display: grid; gap: 10px; }
.product li { font-size: 16px; color: var(--tt-fg); padding-left: 22px; position: relative; line-height: 1.5; }
.product li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--tt-teal); }

/* ---- 7xData consultancy practice mark ---- */
.brand7x { height: 40px; width: auto; display: block; }
.brand7x-light { display: none; }
[data-theme="dark"] .brand7x-dark { display: none; }
[data-theme="dark"] .brand7x-light { display: block; }
.prac-mark { margin-bottom: 22px; }
.prac-mark .note { font-size: 13px; color: var(--tt-fg-muted); margin-top: 10px; }

/* ---- Callout ---- */
.callout { background: var(--tt-bg-alt); border-radius: 12px; padding: 36px 40px; }
[data-theme="dark"] .callout { background: var(--tt-near-black); }
section.alt .callout { background: var(--tt-bg); }
.callout h3 { margin-bottom: 10px; }
.callout p { font-size: 16px; color: var(--tt-fg); line-height: 1.55; }
.callout .kicker { font-family: var(--tt-font); font-size: 11px; letter-spacing: 0.1em; color: var(--tt-teal); margin-bottom: 14px; }

/* ---- Sector strip ---- */
.sector { background: var(--tt-bg); border-radius: 12px; padding: 28px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
[data-theme="dark"] .sector { background: var(--tt-near-black); }
.sector .num { font-family: var(--tt-font); font-size: 12px; color: var(--tt-fg-muted); }
.sector h4 { font-size: 22px; margin-top: 10px; }
.sector .arrow { font-family: var(--tt-font); font-size: 18px; color: var(--tt-teal); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { }
.step .n { font-family: var(--tt-font); font-size: 13px; color: var(--tt-teal); border-top: 2px solid var(--tt-teal); padding-top: 14px; display: block; margin-bottom: 16px; }
.step h4 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--tt-fg-muted); line-height: 1.55; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1140px; }
.plan { background: var(--tt-bg-alt); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; }
[data-theme="dark"] .plan { background: var(--tt-near-black); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--tt-teal); }
.plan .tag { font-size: 14px; font-weight: 500; color: var(--tt-teal); margin-bottom: 12px; height: 18px; line-height: 18px; }
.plan .name { font-size: 22px; font-weight: 700; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--tt-fg-muted); }
.plan .sub { font-size: 13px; color: var(--tt-fg-muted); margin-bottom: 24px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.plan li { font-size: 14px; padding-left: 24px; position: relative; line-height: 1.5; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--tt-teal); font-weight: 700; }
.plan .btn-primary, .plan .btn-ghost { margin-top: auto; text-align: center; }

/* ---- Team grid ---- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; max-width: 980px; }
.member .photo { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.member .name { font-weight: 700; font-size: 17px; }
.member .role { font-size: 14px; color: var(--tt-teal); font-weight: 500; margin: 4px 0 12px; }
.member p { font-size: 14px; color: var(--tt-fg-muted); line-height: 1.55; }

/* ---- Bulleted list ---- */
.tick { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.tick li { font-size: 16px; padding-left: 26px; position: relative; color: var(--tt-fg); line-height: 1.5; }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--tt-teal); font-weight: 700; }

/* ---- Form ---- */
.form { display: grid; gap: 20px; max-width: 560px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label span { color: var(--tt-fg-muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font-family: var(--tt-font); font-size: 15px; padding: 13px 14px; border: 1px solid var(--tt-border); border-radius: 10px; background: var(--tt-bg); color: var(--tt-fg); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tt-teal); }

/* ---- CTA bookend ---- */
.bookend { background: var(--tt-near-black); color: #fff; padding: 96px 0; }
.bookend h2 { color: #fff; max-width: 880px; }
.bookend p { color: rgba(255,255,255,0.72); font-size: 18px; max-width: 640px; margin: 18px 0 32px; line-height: 1.55; }
.bookend .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.bookend .visit { background: #2a2928; border-radius: 12px; padding: 32px; }
.bookend .visit h4 { font-family: var(--tt-font); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); font-weight: 500; margin-bottom: 18px; }
.bookend .visit p { color: #fff; font-size: 15px; line-height: 1.7; }

/* ---- Footer ---- */
footer.tt-footer { background: var(--tt-near-black); color: #fff; padding: 64px 0 36px; }
footer.tt-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
footer.tt-footer .logo { width: 180px; display: block; margin-bottom: 18px; }
footer.tt-footer .logo img { width: 100%; display: block; }
footer.tt-footer .addr { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.72); }
footer.tt-footer .addr a { color: var(--tt-teal); }
footer.tt-footer h4 { font-family: var(--tt-font); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #fff; margin-bottom: 14px; opacity: 0.55; }
footer.tt-footer .col a { color: #fff; opacity: 0.75; display: block; padding: 4px 0; font-size: 13px; }
footer.tt-footer .col a:hover { color: var(--tt-teal); opacity: 1; text-decoration: none; }
footer.tt-footer .badges { display: flex; gap: 20px; align-items: center; margin-top: 22px; }
footer.tt-footer .badges .fbadge { display: block; width: auto; }
footer.tt-footer .badges .fbadge.ccs { height: 30px; opacity: 0.9; }
footer.tt-footer .badges .fbadge.ce { height: 52px; }
footer.tt-footer .badges .b { font-family: var(--tt-font); font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 6px 10px; }
footer.tt-footer .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--tt-font); font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px; }

/* ---- Page intro (interior hero, no image) ---- */
.page-intro { padding: 80px 0 56px; background: var(--tt-bg); }
.page-intro .eyebrow { margin-bottom: 20px; }
.page-intro h1 { max-width: 880px; font-size: clamp(32px, 3.2vw, 44px); }
.page-intro .lede { font-size: 19px; color: var(--tt-fg-muted); max-width: 680px; margin-top: 22px; line-height: 1.55; }

@media (max-width: 980px) {
  .hero .row, .media-row, .media-row.flip, .grid-3, .grid-4, .steps, .team,
  footer.tt-footer .top, .sec-head, .stats, .product, .bookend .grid, .pricing, .grid-2
    { grid-template-columns: 1fr; }
  .tt-header nav { display: none; }
  .form .two { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
