/*
 * Public home page (frontend/home.php). Everything is scoped under .tk-home so
 * nothing leaks into the shared demo form (.tb-demo) or other pages.
 */
.tk-home {
  --tk-navy: #14213D;
  --tk-navy-deep: #0F1A30;
  --tk-gold: #C8A96E;
  --tk-gold-hover: #D9BE86;
  --tk-gold-text: #A9822F;
  --tk-cream: #F3F1EA;
  --tk-ink: #16232E;
  --tk-body: #3B4651;
  --tk-muted: #66707D;
  --tk-faint: #9AA6B8;
  --tk-on-dark: #DCE1EA;
  --tk-line: #E3E6EC;
  --tk-green: #2E7D46;
  --tk-serif: 'Source Serif 4', Georgia, serif;

  font-family: Inter, system-ui, sans-serif;
  color: var(--tk-ink);
  background: #FFFFFF;
  width: 100%;
  box-sizing: border-box;
}
body { margin: 0; background: #FFFFFF; }
.tk-home *, .tk-home *::before, .tk-home *::after { box-sizing: border-box; }
.tk-home a { color: #2B4A7A; }
.tk-home a:hover { color: var(--tk-navy); }
.tk-home img { max-width: 100%; }

.tk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.tk-cream { background: var(--tk-cream); }
.tk-dark { background: var(--tk-navy); color: #FFFFFF; }

/* ---------- Buttons ---------- */
.tk-home .tk-btn-gold,
.tk-home .tk-btn-ghost,
.tk-home .tk-btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none; cursor: pointer; font: inherit;
}
.tk-home .tk-btn-gold { min-height: 48px; padding: 0 22px; background: var(--tk-gold); color: var(--tk-navy); font-weight: 600; font-size: 16px; border: 0; }
.tk-home .tk-btn-gold:hover { background: var(--tk-gold-hover); color: var(--tk-navy); }
.tk-home .tk-btn-gold.sm { min-height: 42px; font-size: 15px; }
.tk-home .tk-btn-ghost { min-height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,0.45); color: #FFFFFF; font-size: 16px; font-weight: 500; background: transparent; }
.tk-home .tk-btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.tk-home .tk-btn-line { min-height: 44px; padding: 0 18px; border: 1px solid var(--tk-navy); color: var(--tk-navy); font-size: 15px; font-weight: 600; background: transparent; }
.tk-home .tk-btn-line:hover { background: var(--tk-navy); color: #FFFFFF; }

/* ---------- Type ---------- */
.tk-h2 { font-family: var(--tk-serif); font-size: 40px; line-height: 1.1; color: var(--tk-navy); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.tk-dark .tk-h2 { color: #FFFFFF; }
.tk-eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tk-gold-text); font-weight: 600; margin: 0 0 12px; }
.tk-dark .tk-eyebrow { color: var(--tk-gold); }
.tk-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tk-muted); font-weight: 600; }
.tk-lede { font-size: 17px; line-height: 1.55; color: var(--tk-body); max-width: 760px; margin: 18px 0 0; }

/* ---------- Grids ---------- */
.tk-grid4, .tk-grid3, .tk-grid2, .tk-grid6 { display: grid; gap: 24px; }
.tk-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-grid6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }

/* ---------- Hero ---------- */
.tk-hero { position: relative; overflow: hidden; background: var(--tk-navy) url(../images/home/hero-poster.jpg) center top / cover; color: #FFFFFF; }
.tk-hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tk-hero-shade { position: absolute; inset: 0; background: rgba(15, 26, 48, 0.84); }
.tk-hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tk-gold); }
@media (prefers-reduced-motion: reduce) { .tk-hero-vid, .tk-walk-vid { display: none; } }

.tk-nav { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tk-nav a { color: #F3F1EA; text-decoration: none; font-size: 15px; }
.tk-nav a:hover { color: var(--tk-gold); }
.tk-nav-logo { display: inline-flex; align-items: center; }
.tk-nav-logo img { height: 34px; width: auto; }
.tk-nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.tk-nav-actions { display: flex; gap: 12px; align-items: center; }
.tk-nav-actions .tk-login { padding: 0 8px; }
.tk-home .tk-nav .tk-btn-gold { color: var(--tk-navy); }
.tk-nav { z-index: 3; }
.tk-nav-login-m { display: none; }

/* Mobile menu toggle (shown <=1000px) */
.tk-navtoggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.tk-navtoggle:hover { border-color: var(--tk-gold); }
.tk-navtoggle:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.tk-navtoggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: #F3F1EA; transition: transform .2s ease, opacity .2s ease; }
.tk-navtoggle[aria-expanded="true"] .tk-navtoggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tk-navtoggle[aria-expanded="true"] .tk-navtoggle-bar:nth-child(2) { opacity: 0; }
.tk-navtoggle[aria-expanded="true"] .tk-navtoggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .tk-navtoggle-bar { transition: none; } }

.tk-hero-grid { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 64px 32px 88px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tk-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.tk-hero-copy .tk-eyebrow { color: var(--tk-gold); margin: 0; }
.tk-aud-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-aud { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #F3F1EA; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.tk-aud:hover { border-color: var(--tk-gold); color: #FFFFFF; }
.tk-aud.on { background: var(--tk-gold); border-color: var(--tk-gold); color: var(--tk-navy); font-weight: 600; }
.tk-aud:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.tk-hero-h1 { font-family: var(--tk-serif); font-size: 64px; line-height: 1.02; margin: 0; font-weight: 700; letter-spacing: -0.02em; color: #FFFFFF; min-height: 3.1em; text-wrap: balance; }
.tk-hero-sub { font-size: 20px; line-height: 1.5; margin: 0; color: var(--tk-on-dark); max-width: 620px; }
.tk-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.tk-hero-fine { margin: 8px 0 0; font-size: 14px; color: var(--tk-faint); }

/* Package card */
.tk-pkg { background: rgba(255,255,255,0.96); border-radius: 16px; padding: 24px 26px; color: var(--tk-ink); box-shadow: 0 30px 80px rgba(0,0,0,0.45); border: 1px solid rgba(200,169,110,0.55); display: flex; flex-direction: column; gap: 16px; }
.tk-pkg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tk-pkg-kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tk-muted); font-weight: 600; }
.tk-pkg-name { font-size: 20px; font-weight: 700; color: var(--tk-navy); margin-top: 4px; }
.tk-badge { background: #E6F1E9; color: var(--tk-green); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tk-pkg-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tk-pkg-line { background: var(--tk-cream); border-radius: 10px; padding: 14px; }
.tk-pkg-line span { display: block; font-size: 12px; color: var(--tk-muted); }
.tk-pkg-line strong { display: block; font-size: 20px; font-weight: 700; color: var(--tk-navy); }
.tk-pkg-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--tk-line); padding-top: 14px; }
.tk-pkg-total span { font-size: 13px; color: var(--tk-muted); }
.tk-pkg-total strong { font-family: var(--tk-serif); font-size: 28px; font-weight: 600; color: var(--tk-navy); }
.tk-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--tk-body); }
.tk-checks li { display: flex; gap: 10px; align-items: center; }
.tk-checks svg { flex: none; }
.tk-pkg-note { font-size: 12px; color: var(--tk-faint); }

/* ---------- Proof strip ---------- */
.tk-proof { border-bottom: 1px solid var(--tk-line); }
.tk-proof .tk-wrap { padding: 32px 32px; display: flex; flex-direction: column; gap: 28px; }
.tk-stat { font-family: var(--tk-serif); font-size: 40px; font-weight: 600; color: var(--tk-navy); line-height: 1; }
.tk-stat-desc { font-size: 14px; color: var(--tk-body); margin-top: 6px; }
.tk-logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.tk-logo-text { font-weight: 600; color: var(--tk-muted); font-size: 15px; letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.tk-sec { padding: 48px 32px 40px; }
.tk-sec-mt { margin-top: 28px; }

.tk-sentence { display: flex; gap: 18px; align-items: flex-start; }
.tk-sentence p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--tk-ink); }
.tk-icon-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--tk-navy); display: flex; align-items: center; justify-content: center; flex: none; }

.tk-card { background: #FFFFFF; border: 1px solid var(--tk-line); border-radius: 12px; padding: 28px; }
.tk-card h3 { margin: 0 0 10px; font-size: 19px; color: var(--tk-navy); }
.tk-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tk-body); }
.tk-aud-card { display: flex; flex-direction: column; gap: 14px; }
.tk-aud-card h3 { margin: 0; font-size: 20px; }
.tk-aud-card .tk-btn-line { margin-top: auto; }

.tk-feat { margin: 0; padding-left: 18px; }
.tk-feat li { margin: 0 0 8px; color: var(--tk-ink); font-size: 15px; line-height: 1.45; }
.tk-dark .tk-feat li { color: var(--tk-on-dark); }

.tk-steps { list-style: none; padding: 0; margin-bottom: 0; }
.tk-step { display: flex; flex-direction: column; gap: 8px; }
.tk-num { width: 36px; height: 36px; border-radius: 50%; background: var(--tk-gold); color: var(--tk-navy); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tk-step strong { font-weight: 600; color: var(--tk-navy); }
.tk-step span { font-size: 14px; color: var(--tk-body); line-height: 1.45; }

.tk-pillar { border-top: 2px solid var(--tk-gold); padding-top: 16px; }
.tk-pillar h3 { margin: 0 0 10px; font-size: 17px; color: #FFFFFF; }

.tk-pill { display: inline-block; border: 1px solid #D5DAE3; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--tk-body); background: #FFFFFF; }
.tk-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-pills.tight { gap: 8px; }

.tk-integrations { border-top: 1px solid var(--tk-line); border-bottom: 1px solid var(--tk-line); }
.tk-integrations .tk-wrap { padding: 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.tk-integrations-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.tk-integrations-head .tk-h2 { font-size: 28px; }
.tk-integrations-head a { font-weight: 600; }
.tk-small-note { margin: 0; font-size: 14px; color: var(--tk-muted); }

/* Walkthrough video */
.tk-walk-grid { margin-top: 36px; align-items: start; }
.tk-home .tk-walk { position: relative; aspect-ratio: 16 / 9; background: var(--tk-navy); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(20,33,61,0.25); }
.tk-walk-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk-walk-shade { position: absolute; inset: 0; background: rgba(15, 26, 48, 0.45); }
.tk-walk-play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--tk-gold); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.tk-walk:hover .tk-walk-play { transform: scale(1.06); }
.tk-walk-caption { position: absolute; left: 28px; bottom: 24px; color: #FFFFFF; font-size: 15px; font-weight: 500; }
.tk-chapters { display: flex; flex-direction: column; gap: 10px; }
.tk-chapters .tk-label { margin-bottom: 6px; }
.tk-chapters p { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--tk-body); }
.tk-chapters .tk-btn-line { align-self: flex-start; }

/* FAQ */
.tk-faq { padding: 48px 32px; max-width: 900px; }
.tk-faq-list { margin-top: 28px; border-bottom: 1px solid var(--tk-line); }
.tk-faq details { border-top: 1px solid var(--tk-line); padding: 18px 0; }
.tk-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--tk-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--tk-gold-text); flex: none; }
.tk-faq details[open] summary::after { content: '\2212'; }
.tk-faq details p { margin: 10px 0 0; color: var(--tk-body); font-size: 15px; line-height: 1.55; }

/* Final CTA */
.tk-final .tk-wrap { padding: 48px 32px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.tk-final .tk-h2 { font-size: 44px; }
.tk-final p { margin: 0; font-size: 18px; color: var(--tk-on-dark); max-width: 680px; line-height: 1.5; }
.tk-final .tk-hero-ctas { margin-top: 6px; }

/* Footer */

/* ---------- Demo modal ---------- */
.tk-modal { width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: #F7F7F5; color: var(--tk-ink); box-shadow: 0 40px 100px rgba(0,0,0,0.5); overflow: auto; overscroll-behavior: contain; }
.tk-modal::backdrop { background: rgba(15, 26, 48, 0.72); backdrop-filter: blur(3px); }
.tk-modal[open] { animation: tk-modal-in .2s ease-out; }
@keyframes tk-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tk-modal[open] { animation: none; } }
.tk-modal .tb-demo { border: 0; padding: 48px 0 32px; }
.tk-modal-close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tk-line); background: #FFFFFF; color: var(--tk-navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20,33,61,0.12); }
.tk-modal-close:hover { border-color: var(--tk-gold); color: var(--tk-gold-text); }
.tk-modal-close:focus-visible { outline: 2px solid var(--tk-gold); outline-offset: 2px; }
html.tk-modal-lock { overflow: hidden; }
.tk-video-modal { width: min(1200px, calc(100% - 32px)); background: #000000; overflow: hidden; }
.tk-video-modal .tk-modal-close { position: absolute; top: 12px; right: 12px; margin: 0; float: none; }
.tk-video-modal-vid { display: block; width: 100%; max-height: calc(100dvh - 48px); aspect-ratio: 16 / 9; background: #000000; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tk-grid4, .tk-grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-grid3, .tk-hero-grid { grid-template-columns: 1fr; }
  .tk-hero-grid { padding: 40px 32px 56px; gap: 32px; }
  .tk-h2 { font-size: 32px; }
  .tk-hero-h1 { font-size: 44px; }
  .tk-proof .tk-grid4 > div { border-left: 2px solid var(--tk-gold); padding-left: 16px; }
  .tk-logos { gap: 8px; padding-top: 24px; border-top: 1px solid #D5DAE3; }
  .tk-logos .tk-label { flex-basis: 100%; }
  .tk-sentence { gap: 14px; }
  .tk-sentence p { font-size: 16px; line-height: 1.6; }
  .tk-icon-dot { width: 40px; height: 40px; }
  .tk-icon-dot svg { width: 18px; height: 18px; }
  .tk-lede { font-size: 16px; }
  .tk-grid6.tk-steps { gap: 12px; }
  .tk-step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-content: start; padding: 16px; background: var(--tk-cream); border-left: 3px solid var(--tk-gold); border-radius: 10px; }
  .tk-step .tk-num { grid-row: span 2; width: 32px; height: 32px; font-size: 14px; }
  .tk-integrations-head .tk-h2 { font-size: 24px; }
  .tk-walk-grid.tk-grid2 { grid-template-columns: 1fr; margin-top: 28px; gap: 28px; }
  .tk-walk-play { width: 64px; height: 64px; }
  .tk-walk-caption { left: 16px; bottom: 14px; font-size: 14px; }
  .tk-logo-text { border: 1px solid #D5DAE3; border-radius: 999px; padding: 6px 12px; font-size: 13px; background: #FFFFFF; }

  /* Mobile menu: links collapse into a dropdown panel under the bar */
  .tk-nav { flex-wrap: nowrap; }
  .tk-navtoggle { display: inline-flex; }
  .tk-nav-links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; padding: 8px; background: var(--tk-navy-deep); border: 1px solid rgba(200,169,110,0.45); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
  .tk-nav-links.open { display: flex; }
  .tk-nav .tk-nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; font-size: 16px; }
  .tk-nav .tk-nav-links a:hover, .tk-nav .tk-nav-links a:focus-visible { background: rgba(255,255,255,0.06); color: var(--tk-gold); }
  .tk-nav .tk-nav-links .tk-nav-login-m { display: none; } /* bar still shows Log in until <=620px */
}
@media (max-width: 620px) {
  .tk-wrap, .tk-nav, .tk-hero-grid, .tk-sec, .tk-faq,
  .tk-proof .tk-wrap, .tk-integrations .tk-wrap, .tk-final .tk-wrap { padding-left: 16px; padding-right: 16px; }
  .tk-grid4, .tk-grid6, .tk-grid2 { grid-template-columns: 1fr; }
  .tk-sec { padding-top: 32px; padding-bottom: 28px; }
  .tk-faq, .tk-final .tk-wrap { padding-top: 32px; padding-bottom: 32px; }
  .tk-integrations .tk-wrap { padding-top: 28px; padding-bottom: 28px; }
  .tk-hero-grid { padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  .tk-nav { gap: 12px; }
  .tk-nav-logo img { height: 30px; }
  .tk-nav-actions { gap: 8px; }
  .tk-nav-actions .tk-login { display: none; }
  .tk-nav .tk-nav-links .tk-nav-login-m { display: flex; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 4px; border-radius: 0 0 8px 8px; }
  .tk-home .tk-nav .tk-btn-gold.sm { padding: 0 14px; font-size: 14px; }
  .tk-hero-h1 { font-size: 32px; min-height: 0; }
  .tk-h2, .tk-final .tk-h2 { font-size: 26px; }
  .tk-integrations-head .tk-h2 { font-size: 22px; }
  .tk-hero-sub, .tk-final p { font-size: 16px; }
  .tk-lede, .tk-sentence p, .tk-card p, .tk-feat li, .tk-chapters p, .tk-faq summary { font-size: 15px; }
  .tk-card h3, .tk-aud-card h3 { font-size: 17px; }
  .tk-stat { font-size: 32px; }
  .tk-home .tk-btn-gold, .tk-home .tk-btn-ghost, .tk-home .tk-btn-line { min-height: 42px; padding: 0 18px; font-size: 15px; }
  .tk-hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .tk-home .tk-hero-ctas > a { flex: 1 1 auto; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .tk-pkg { padding: 20px; }
  .tk-pkg-line strong { font-size: 18px; }
  .tk-modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .tk-modal .tb-demo { padding-top: 64px; }
  .tk-modal .tb-demo .tb-card { padding: 20px; }
  .tk-video-modal { width: calc(100% - 16px); height: auto; max-height: calc(100dvh - 16px); border-radius: 12px; }
  .tk-video-modal-vid { max-height: calc(100dvh - 16px); }
}
