/* Tertios website — tokens follow the xss-manual brand (templates/tertios.json),
   shapes and module colours follow the app's new look (tertios-theme.css). */

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

:root {
  --navy: #154A66;
  --navy-deep: #0D4270;
  --navy-900: #0A2540;
  --orange: #F37B20;
  --orange-text: #A44A06;
  --orange-tint: #FFF1E5;
  --ink: #173B4F;
  --muted: #546D82;
  --panel: #E3F0F7;
  --bg: #FFFFFF;
  --bg-tint: #F4F6F9;
  --border: #E3E8EF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --mc: var(--orange);
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body.tt {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-deep); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--navy-900); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.tt-icon { width: 1.25em; height: 1.25em; flex: none; }
.tt-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.tt-container--narrow { max-width: 820px; }
.tt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-900); color: #fff; padding: 8px 16px; border-radius: 8px; }
.tt-skip:focus { left: 8px; }

.tt-h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.tt-h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.tt-h3 { font-size: 1.375rem; font-weight: 700; }
.tt-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.tt-lead--light { color: rgba(255, 255, 255, .82); }
.tt-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-text);
}
.tt-eyebrow--light { color: #FFB57A; }
.tt-eyebrow--muted { color: var(--muted); }
.tt-eyebrow--module { color: color-mix(in srgb, var(--mc) 80%, #000); }

/* ── Buttons ──────────────────────────────────────── */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.tt-btn .tt-icon { transition: transform .2s var(--ease); }
.tt-btn:hover .tt-icon { transform: translateX(3px); }
.tt-btn--primary { background: var(--orange); color: #1B0E02; box-shadow: 0 6px 18px rgba(243, 123, 32, .35); }
.tt-btn--primary:hover { color: #1B0E02; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(243, 123, 32, .45); }
.tt-btn--white { background: #fff; color: var(--navy-900); }
.tt-btn--white:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.tt-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.tt-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.tt-btn--block { width: 100%; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tt-actions--center { justify-content: center; }

/* ── Header ───────────────────────────────────────── */
.tt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.tt-header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(10, 37, 64, .06); }
.tt-header__inner { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .25s var(--ease); }
.tt-header.is-scrolled .tt-header__inner { height: 64px; }

.tt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.tt-brand img { width: 40px; height: 40px; }
.tt-brand__word { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy); line-height: 1; }
.tt-brand:hover .tt-brand__word { color: var(--navy); }
.tt-brand--light .tt-brand__word { color: #fff; }

.tt-nav { display: flex; align-items: center; gap: 8px; }
.tt-nav__list { display: flex; align-items: center; gap: 2px; }
.tt-nav__item { position: relative; }
.tt-nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 550; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.tt-nav__link:hover, .tt-nav__link[aria-expanded="true"] { background: var(--bg-tint); color: var(--navy-900); }
.tt-nav__link[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--orange); }
.tt-nav__chev { width: 16px; height: 16px; transition: transform .2s; }
[aria-expanded="true"] > .tt-nav__chev { transform: rotate(180deg); }
.tt-nav__cta { min-height: 42px; padding: 8px 18px; margin-left: 8px; }

.tt-mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(760px, 92vw);
  padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-30%, -6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.tt-mega.is-open { opacity: 1; visibility: visible; transform: translate(-30%, 0); }
.tt-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tt-mega__link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.tt-mega__link:hover { background: color-mix(in srgb, var(--mc) 8%, #fff); color: var(--ink); }
.tt-mega__link strong { display: block; font-size: .92rem; font-weight: 650; line-height: 1.25; }
.tt-mega__link small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--mc); }
.tt-mega__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--mc) 12%, #fff); color: var(--mc); flex: none; }
.tt-mega__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg-tint); font-weight: 600; font-size: .9rem; text-decoration: none; }

.tt-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-tint); color: var(--navy-900); cursor: pointer; place-items: center; }
.tt-burger .tt-icon { width: 24px; height: 24px; }
.tt-burger__close { display: none; }
.tt-burger[aria-expanded="true"] .tt-burger__open { display: none; }
.tt-burger[aria-expanded="true"] .tt-burger__close { display: block; }

@media (max-width: 960px) {
  .tt-burger { display: grid; }
  .tt-nav {
    position: fixed; inset: 76px 0 auto 0; max-height: calc(100dvh - 76px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .tt-header.is-scrolled .tt-nav { inset-block-start: 64px; }
  .tt-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .tt-nav__list { flex-direction: column; align-items: stretch; }
  .tt-nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .tt-mega { position: static; width: auto; padding: 0 0 8px; border: 0; box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; }
  .tt-mega.is-open { display: block; transform: none; }
  .tt-mega__grid { grid-template-columns: 1fr 1fr; }
  .tt-nav__cta { margin: 12px 0 0; }
}
@media (max-width: 520px) { .tt-mega__grid { grid-template-columns: 1fr; } }

/* ── Hero (home) ─────────────────────────────────── */
.tt-hero {
  position: relative; overflow: clip; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #1B6A8F 0%, transparent 60%), linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-900) 70%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 140px);
}
.tt-hero__glow {
  position: absolute; width: 520px; height: 520px; right: -120px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 123, 32, .45), transparent 65%); filter: blur(10px); pointer-events: none;
}
.tt-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tt-hero .tt-h1 { color: #fff; margin-bottom: 20px; }
.tt-hero .tt-h1::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 22px; border-radius: 6px; background: var(--orange); }
.tt-hero__visual { perspective: 1400px; }
.tt-hero__stage { position: relative; aspect-ratio: 1.15; transform-style: preserve-3d; }
.tt-hero__shot { position: absolute; width: 88%; }
.tt-hero__shot--back { top: 0; right: 0; opacity: .55; transform: translateZ(-80px) scale(.94); }
.tt-hero__shot--front { bottom: 0; left: 0; }
.tt-hero__mark {
  position: absolute; width: clamp(84px, 11vw, 150px); right: -4%; bottom: -8%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  animation: tt-float 7s ease-in-out infinite;
}
@keyframes tt-float { 50% { transform: translateY(-10px) rotate(6deg); } }

/* Screenshot in a light browser frame */
.tt-shot { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(10, 37, 64, .08); }
.tt-shot__bar { display: flex; gap: 6px; padding: 9px 12px; background: #EEF2F6; border-bottom: 1px solid var(--border); }
.tt-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E0; }
.tt-shot__bar i:first-child { background: #F37B20; }
.tt-shot img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .tt-hero__grid { grid-template-columns: 1fr; }
  .tt-hero__stage { aspect-ratio: 1.3; max-width: 620px; }
}

/* ── Proof strip & clients ───────────────────────── */
.tt-proof { position: relative; z-index: 2; margin-top: calc(-1 * clamp(40px, 6vw, 72px)); }
.tt-proof__list {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.tt-proof__item { padding: 26px 24px; border-right: 1px solid var(--border); }
.tt-proof__item:last-child { border-right: 0; }
.tt-proof__value { display: block; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.tt-proof__label { font-size: .92rem; color: var(--muted); }
.tt-clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; padding: 40px 0 0; }
.tt-clients__title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tt-clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.tt-clients__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tt-clients__list img { height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.tt-clients__list li:hover img { filter: none; opacity: 1; }
.tt-clients__list small { font-size: .75rem; color: var(--muted); }
@media (max-width: 760px) {
  .tt-proof__list { grid-template-columns: 1fr 1fr; }
  .tt-proof__item:nth-child(2) { border-right: 0; }
  .tt-proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ── Sections ────────────────────────────────────── */
.tt-section { padding: var(--section) 0; }
.tt-section--tint { background: var(--bg-tint); }
.tt-section--dark { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.tt-section--dark .tt-h2 { color: #fff; }
.tt-section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.tt-section__head .tt-lead { margin: 16px auto 0; }
.tt-section__head--left { margin-inline: 0; text-align: left; }

.tt-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.tt-split--wide { grid-template-columns: 1.4fr 1fr; align-items: start; }
.tt-split__col { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--bg-tint); }
.tt-split__col .tt-h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 14px; }
.tt-split__col--accent { background: var(--orange-tint); position: relative; overflow: hidden; }
.tt-split__col--accent::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(243, 123, 32, .14); }
@media (max-width: 860px) { .tt-split, .tt-split--wide { grid-template-columns: 1fr; } }

/* ── Bento module grid ───────────────────────────── */
.tt-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tt-bento__item--wide { grid-column: span 2; }
.tt-tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tt-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mc); transform: scaleX(.25); transform-origin: left; transition: transform .35s var(--ease); }
.tt-tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--mc) 35%, #fff); }
.tt-tile:hover::before { transform: scaleX(1); }
.tt-tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tt-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--mc) 12%, #fff); color: var(--mc); flex: none; }
.tt-tile__icon .tt-icon { width: 24px; height: 24px; }
.tt-tile__code { font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--mc) 10%, #fff); color: color-mix(in srgb, var(--mc) 85%, #000); }
.tt-tile__name { display: block; font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; color: var(--navy-900); }
.tt-tile__text { display: block; font-size: .95rem; color: var(--muted); }
.tt-tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .9rem; font-weight: 650; color: color-mix(in srgb, var(--mc) 85%, #000); }
.tt-tile:hover .tt-tile__more .tt-icon { transform: translateX(4px); }
.tt-tile__more .tt-icon { transition: transform .2s var(--ease); width: 16px; height: 16px; }
.tt-bento__item--wide .tt-tile { background: linear-gradient(135deg, #fff 55%, color-mix(in srgb, var(--mc) 9%, #fff)); }
.tt-bento__item--wide .tt-tile__name { font-size: 1.5rem; }
/* Dashboard opens and the app closes the grid as full-width banners; 2 wide + 8 small fill the rows between. */
.tt-bento__item--banner { grid-column: 1 / -1; }
.tt-bento__item--banner .tt-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 20px; background: linear-gradient(110deg, var(--navy-900), var(--navy)); border: 0; color: #fff; }
.tt-bento__item--banner:first-child .tt-tile { background: linear-gradient(110deg, var(--mc), color-mix(in srgb, var(--mc) 70%, #3B82B0)); }
.tt-bento__item--banner .tt-tile__top { margin: 0; grid-row: span 2; }
.tt-bento__item--banner .tt-tile__code { display: none; }
.tt-bento__item--banner .tt-tile__icon { background: rgba(255, 255, 255, .12); color: #FFB57A; }
.tt-bento__item--banner .tt-tile__name { color: #fff; }
.tt-bento__item--banner .tt-tile__text { color: rgba(255, 255, 255, .75); grid-column: 2; }
.tt-bento__item--banner .tt-tile__more { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; color: #FFB57A; }
@media (max-width: 560px) {
  .tt-bento__item--banner .tt-tile { grid-template-columns: auto 1fr; }
  .tt-bento__item--banner .tt-tile__more { grid-column: 2; grid-row: auto; }
}
@media (max-width: 1000px) { .tt-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tt-bento { grid-template-columns: 1fr; } .tt-bento__item--wide { grid-column: auto; } }

/* ── Flows (how it connects) ─────────────────────── */
.tt-flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tt-flow { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.tt-flow .tt-h3 { font-size: 1.15rem; margin-bottom: 20px; }
.tt-flow p { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.tt-flow__steps { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 26px; }
.tt-flow__steps::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--navy), var(--orange)); transform-origin: top;
}
.tt-flow__steps li { position: relative; }
.tt-flow__steps li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.tt-flow__steps li:last-child::before { border-color: var(--orange); background: var(--orange); }
.tt-flow__steps span { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--panel); font-weight: 600; font-size: .95rem; color: var(--navy-900); }
@media (max-width: 960px) { .tt-flows { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ── Benefits (dark) ─────────────────────────────── */
.tt-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tt-benefit { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, transform .25s var(--ease); }
.tt-benefit:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.tt-benefit__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: rgba(243, 123, 32, .18); color: #FFB57A; }
.tt-benefit h3 { font-size: 1.08rem; color: #fff; margin-bottom: 8px; }
.tt-benefit p { margin: 0; font-size: .93rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 1000px) { .tt-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tt-benefits { grid-template-columns: 1fr; } }

/* ── Timeline & pricing box ──────────────────────── */
.tt-timeline { position: relative; display: grid; gap: 10px; }
.tt-timeline__step { display: flex; gap: 18px; padding: 18px; border-radius: var(--radius); transition: background .25s; }
.tt-timeline__step:hover { background: var(--bg-tint); }
.tt-timeline__num {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 6px var(--panel);
}
.tt-timeline h3 { font-size: 1.1rem; margin: 4px 0 4px; }
.tt-timeline p { margin: 0; color: var(--muted); }
.tt-pricing { position: sticky; top: 100px; padding: 32px; border-radius: var(--radius); background: var(--panel); }
.tt-pricing__icon { display: block; width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 12px; background: #fff; color: var(--orange-text); }
.tt-pricing .tt-eyebrow { margin-bottom: 6px; }
.tt-pricing .tt-h3 { margin-bottom: 10px; }
.tt-pricing__intro { color: var(--muted); }
.tt-pricing ul { display: grid; gap: 14px; margin: 20px 0; }
.tt-pricing li { display: flex; gap: 12px; font-size: .95rem; }
.tt-pricing li strong { display: block; color: var(--navy-900); }
.tt-pricing__check { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--navy); color: #fff; stroke-width: 3; }
.tt-pricing__outro { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 860px) { .tt-pricing { position: static; } }

/* ── CTA band ────────────────────────────────────── */
.tt-cta { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; text-align: center; color: #fff; background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1B6A8F); }
.tt-cta::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 80px solid rgba(243, 123, 32, .12); }
.tt-cta__inner { position: relative; }
.tt-cta .tt-h2 { color: #fff; max-width: 820px; margin: 0 auto 14px; }
.tt-cta .tt-lead { margin: 0 auto; }
.tt-cta--module { background: linear-gradient(120deg, color-mix(in srgb, var(--mc) 55%, var(--navy-900)), var(--navy-900)); }

/* ── Contact ─────────────────────────────────────── */
.tt-contact { background: var(--bg-tint); }
.tt-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tt-contact__intro .tt-h2 { margin-bottom: 16px; }
.tt-contact__list { display: grid; gap: 14px; margin-top: 28px; }
.tt-contact__list li { display: flex; align-items: center; gap: 12px; }
.tt-contact__list .tt-icon { color: var(--orange); }
.tt-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.tt-form { padding: clamp(24px, 3.5vw, 40px); }
.tt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tt-field { display: grid; gap: 6px; margin-bottom: 16px; }
.tt-field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.tt-field input, .tt-field select, .tt-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.tt-field textarea { resize: vertical; min-height: 120px; }
.tt-field input:focus, .tt-field select:focus, .tt-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(21, 74, 102, .12); }
.tt-form__note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.tt-form__error { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm); background: #FDECEA; color: #B42318; font-weight: 550; }
.tt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .tt-contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tt-form__row { grid-template-columns: 1fr; gap: 0; } }

/* ── Module page ─────────────────────────────────── */
.tt-mhero {
  position: relative; overflow: clip; color: #fff;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 90% 0%, color-mix(in srgb, var(--mc) 70%, transparent), transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--mc) 35%, var(--navy-900)) 0%, var(--navy-900) 75%);
}
.tt-mhero--plain { --mc: var(--navy); }
.tt-mhero--slim { padding-block: clamp(40px, 6vw, 72px); }
.tt-mhero .tt-h1 { color: #fff; margin: 14px 0 18px; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.tt-mhero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tt-crumbs { display: flex; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.tt-crumbs a { display: inline-block; padding-block: 4px; color: rgba(255, 255, 255, .8); text-decoration: none; }
.tt-crumbs a:hover { color: #fff; text-decoration: underline; }
.tt-mhero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 650;
}
.tt-mhero__badge .tt-icon { width: 18px; height: 18px; }
.tt-mhero__stat { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 460px; }
.tt-mhero__stat strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #FFB57A; white-space: nowrap; }
.tt-mhero__stat span { font-size: .95rem; color: rgba(255, 255, 255, .75); }
.tt-mhero__visual { perspective: 1400px; }
.tt-mhero__emblem {
  display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; margin-inline: auto; border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: var(--shadow-lg); color: #fff;
}
.tt-mhero__emblem .tt-icon { width: 46%; height: 46%; stroke-width: 1.25; }
@media (max-width: 900px) { .tt-mhero__grid { grid-template-columns: 1fr; } .tt-mhero__emblem { max-width: 200px; } }

.tt-audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tt-audience__item { padding: 24px; border-radius: var(--radius); background: var(--bg-tint); border-top: 4px solid var(--mc); }
.tt-audience__item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tt-audience__item p { margin: 0; font-size: .95rem; color: var(--muted); }

.tt-spot { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 32px; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.tt-spot__text .tt-h3 { margin: 16px 0 10px; font-size: 1.6rem; }
.tt-spot__text p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .tt-spot { grid-template-columns: 1fr; } }

.tt-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tt-feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tt-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tt-feature__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: color-mix(in srgb, var(--mc) 12%, #fff); color: var(--mc); }
.tt-feature__icon .tt-icon { width: 24px; height: 24px; }
.tt-feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tt-feature p { margin: 0; font-size: .95rem; color: var(--muted); }
/* A lone card on the last row spans the row instead of leaving two empty cells. */
@media (min-width: 1001px) { .tt-feature:nth-child(3n+1):last-child { grid-column: 1 / -1; } }
@media (max-width: 1000px) {
  .tt-features { grid-template-columns: repeat(2, 1fr); }
  .tt-feature:nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .tt-features { grid-template-columns: 1fr; } }

.tt-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tt-tile--row { flex-direction: row; align-items: center; gap: 16px; }
.tt-tile__arrow { margin-left: auto; color: var(--mc); transition: transform .2s var(--ease); }
.tt-tile--row:hover .tt-tile__arrow { transform: translateX(4px); }
.tt-tile--row .tt-tile__name { font-size: 1.05rem; }

.tt-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 32px 56px; }
.tt-pager__link { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--navy-900); font-weight: 650; transition: border-color .2s, transform .2s var(--ease); }
.tt-pager__link:hover { color: var(--navy-900); border-color: var(--mc); transform: translateY(-2px); }
.tt-pager__link .tt-icon { color: var(--mc); }
.tt-pager__link small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tt-pager__link--next { justify-content: flex-end; text-align: right; }
@media (max-width: 600px) { .tt-pager { grid-template-columns: 1fr; } }

.tt-sticky-cta { display: none; }
@media (max-width: 760px) {
  .tt-sticky-cta {
    position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px;
    background: var(--orange); color: #1B0E02; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .3s var(--ease);
  }
  .tt-sticky-cta.is-visible { transform: none; }
  .tt-module .tt-pager { padding-bottom: 96px; }
}

/* ── Prose (legal pages) ─────────────────────────── */
.tt-prose { font-size: 1.02rem; }
.tt-prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.tt-prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.tt-prose ul, .tt-prose ol { margin: 0 0 1em 1.3em; list-style: revert; }
.tt-prose li { margin-bottom: .35em; }
.tt-prose .tt-note { margin: 1.5em 0; padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border-left: 4px solid var(--navy); }
.tt-prose .tt-note p:last-child { margin: 0; }

/* ── Over ons: team ──────────────────────────────── */
.tt-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tt-team__item { padding: 28px 24px; text-align: center; }
.tt-team__avatar {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; box-shadow: 0 0 0 6px var(--panel);
}
.tt-team__name { font-size: 1.12rem; margin-bottom: 4px; }
.tt-team__role { margin-bottom: 12px; font-size: .9rem; font-weight: 700; color: var(--orange-text); }
.tt-team__text { margin: 0; font-size: .95rem; color: var(--muted); }
.tt-team__more { margin: 32px 0 0; text-align: center; }
@media (max-width: 1000px) { .tt-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tt-team { grid-template-columns: 1fr; } }

/* ── Veelgestelde vragen ─────────────────────────── */
.tt-faq__toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tt-faq__toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--panel); color: var(--navy-900); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.tt-faq__toc a:hover { background: var(--navy); color: #fff; }
.tt-faq__group { margin-bottom: 48px; scroll-margin-top: 96px; }
.tt-faq__title { margin-bottom: 16px; }
.tt-faq__item { border-bottom: 1px solid var(--border); }
.tt-faq__item:first-of-type { border-top: 1px solid var(--border); }
.tt-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px;
  font-weight: 600; color: var(--navy-900); cursor: pointer; list-style: none;
}
.tt-faq__item summary::-webkit-details-marker { display: none; }
.tt-faq__item summary:hover { color: var(--orange-text); }
.tt-faq__chev { color: var(--muted); transition: transform .25s var(--ease); }
.tt-faq__item[open] .tt-faq__chev { transform: rotate(180deg); }
.tt-faq__answer { padding: 0 4px 18px; color: var(--ink); }
.tt-faq__answer p { margin: 0; }

/* ── Footer ──────────────────────────────────────── */
.tt-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: .95rem; }
.tt-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.tt-footer a:hover { color: #FFB57A; }
.tt-footer__grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 40px; }
.tt-footer__brand p { margin-top: 16px; max-width: 34ch; }
.tt-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tt-footer__links a { display: inline-block; padding-block: 4px; }
.tt-footer__title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.tt-footer__modules { columns: 2; column-gap: 24px; }
.tt-footer__modules li { margin-bottom: 8px; break-inside: avoid; }
.tt-footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.tt-footer__contact .tt-icon { color: var(--orange); margin-top: 3px; }
.tt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.tt-footer__legal { display: flex; gap: 20px; }
@media (max-width: 860px) { .tt-footer__grid { grid-template-columns: 1fr; } }

/* ── Motion ──────────────────────────────────────────
   1. Browsers with scroll-driven animations (html.sda): pure CSS, tied to scroll.
   2. Others (html.io): JS adds .is-visible via IntersectionObserver.
   3. Reduced motion or no JS: neither class is set, everything is static. */

@keyframes tt-reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tt-hero-tilt { from { transform: rotateX(16deg) rotateY(-14deg) rotateZ(2deg) scale(.92); } to { transform: none; } }
@keyframes tt-hero-back { from { transform: translateZ(-80px) translateY(40px) scale(.94); } to { transform: translateZ(-80px) translateY(-30px) scale(.94); } }
@keyframes tt-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

html.sda .reveal {
  animation: tt-reveal linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 28%;
}
html.sda .tt-bento__item.reveal, html.sda .tt-benefit.reveal, html.sda .tt-feature.reveal, html.sda .tt-audience__item.reveal {
  animation-range: entry calc(2% + var(--i, 0) * 2%) cover calc(24% + var(--i, 0) * 2%);
}
html.sda .tt-hero__shot--front, html.sda .tt-mhero__shot {
  animation: tt-hero-tilt linear both;
  animation-timeline: scroll(root);
  animation-range: 0 55vh;
}
html.sda .tt-hero__shot--back {
  animation: tt-hero-back linear both;
  animation-timeline: scroll(root);
  animation-range: 0 80vh;
}
html.sda .tt-flow__steps::before {
  animation: tt-draw linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 45%;
}

html.io .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.io .reveal.is-visible { opacity: 1; transform: none; }
html.io .tt-hero__shot--front, html.io .tt-mhero__shot { animation: tt-hero-in 1.1s var(--ease) both .15s; }
@keyframes tt-hero-in { from { opacity: 0; transform: rotateX(16deg) rotateY(-14deg) scale(.92); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
