/* Treasatech Global — Brand Kit V1.0 helpers
   Load AFTER the Tailwind CDN + tailwind-config script on every page.
   Palette: Deep Navy #0A1220 · Flow Blue #1B7EE8 · Growth Green #6DBE2C
            Signal Amber #F5B301 · Sky #35B6F5 · Ink #101B2D · Slate #5A6B85 */

:root {
  --tt-navy: #0A1220;
  --tt-ink: #101B2D;
  --tt-flow: #1B7EE8;
  --tt-sky: #35B6F5;
  --tt-growth: #6DBE2C;
  --tt-amber: #F5B301;
  --tt-slate: #5A6B85;
  --tt-line: #E4E9F1;
  --tt-gradient: linear-gradient(90deg, #6DBE2C 0%, #1B7EE8 50%, #F5B301 100%);
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display + headings — Bricolage Grotesque, tight tracking (Brand Kit §04) */
h1, h2, h3, h4, h5,
.font-display, .font-display-lg, .font-display-lg-mobile,
.font-headline-lg, .font-headline-md {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}

/* Figures, labels, tabular data — JetBrains Mono (Brand Kit §04) */
.font-mono, .mono, .tabular {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-feature-settings: "tnum" 1;
}

/* Mono eyebrow / kicker label — +16% tracking when uppercase */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 500;
}

/* The leaf cut — the mark's terminal is a quarter-round cut; repeat it in
   containers, badges and image masks at a 1:1 corner ratio (Brand Kit §05) */
.leaf-cut       { border-radius: 1.25rem; border-bottom-left-radius: 0; }
.leaf-cut-tr    { border-radius: 1.25rem; border-top-right-radius: 0; }
.leaf-cut-sm    { border-radius: 0.75rem; border-bottom-left-radius: 0; }
.leaf-cut-lg    { border-radius: 2rem;    border-bottom-left-radius: 0; }
.leaf-cut-mask  { border-radius: 1.25rem; border-bottom-left-radius: 0; overflow: hidden; }

/* Signature gradient — mark, hairline dividers and single hero moments only.
   Never behind body text (Brand Kit §03). */
.brand-gradient { background-image: var(--tt-gradient); }
.brand-rule {
  height: 3px; width: 96px; border: 0; border-radius: 9999px;
  background-image: var(--tt-gradient);
}
.brand-rule-full { height: 2px; border: 0; background-image: var(--tt-gradient); }
.brand-text-gradient {
  background: var(--tt-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hex texture — a fine cellular grid; kept faint as a background field,
   never in the foreground (Brand Kit §05) */
.hex-field { position: relative; isolation: isolate; }
.hex-field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='none' stroke='%231B7EE8' stroke-width='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5z'/%3E%3Cpath d='M0 32.25l13-7.5v-15L0 2.25M27.99 2.25l-13 7.5v15l13-7.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 80px;
}
.hex-field-light::before {
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='none' stroke='%235A6B85' stroke-width='1.2'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5z'/%3E%3Cpath d='M0 32.25l13-7.5v-15L0 2.25M27.99 2.25l-13 7.5v15l13-7.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Icon rule — one accent per icon, blue as the base stroke (Brand Kit §05) */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Site-wide: every small uppercase kicker/eyebrow renders in mono with +16%
   tracking (Brand Kit §04). Catches the existing text-label-sm + uppercase
   pattern without touching markup. */
.text-label-sm.uppercase {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Card / container hover lift used across the corporate pages */
.bento-card { transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(10,18,32,.35); border-color: #B9C6D9; }

/* ── Request-a-demo modal (assets/js/demo-modal.js) ─────────────────────── */
body.tt-demo-open { overflow: hidden; }
.tt-demo-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 18, 32, .74); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.tt-demo-overlay.is-open { opacity: 1; }
.tt-demo-card {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: #0A1220; color: #F5F7FA;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .65);
  transform: translateY(14px) scale(.98); transition: transform .25s ease;
}
.tt-demo-overlay.is-open .tt-demo-card { transform: none; }
.tt-demo-view { padding: 30px 26px 22px; }
.tt-demo-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: #8A9AB2;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.tt-demo-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tt-demo-card .brand-rule { display: block; margin-bottom: 14px; }
.tt-demo-kicker { color: #35B6F5; margin-bottom: 6px; }
.tt-demo-card h2 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px;
}
.tt-demo-sub { color: #B9C6D9; font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
#tt-demo-form label { display: block; font-size: 12px; color: #B9C6D9; margin-bottom: 11px; }
#tt-demo-form label span { color: #5A6B85; }
.tt-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#tt-demo-form input,
#tt-demo-form select,
#tt-demo-form textarea {
  width: 100%; margin-top: 4px; padding: 10px 11px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); color: #F5F7FA;
  font: inherit; font-size: 14px;
}
#tt-demo-form textarea { resize: vertical; min-height: 44px; }
#tt-demo-form input::placeholder,
#tt-demo-form textarea::placeholder { color: #5A6B85; }
#tt-demo-form input:focus,
#tt-demo-form select:focus,
#tt-demo-form textarea:focus {
  outline: none; border-color: #1B7EE8; box-shadow: 0 0 0 3px rgba(27, 126, 232, .25);
}
#tt-demo-form input.is-invalid,
#tt-demo-form select.is-invalid { border-color: #F27A7A; box-shadow: 0 0 0 3px rgba(242, 122, 122, .2); }
.tt-demo-select-wrap select { margin-top: 0; }

/* Phone field — country-code dropdown (flag + dial code) + number input */
.tt-phone-field { display: flex; align-items: stretch; gap: 8px; margin-top: 4px; }
.tt-dial { position: relative; flex: 0 0 auto; }
.tt-dial-btn {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 10px 8px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); color: #F5F7FA;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap;
}
.tt-dial-btn:hover { border-color: rgba(255, 255, 255, .3); }
.tt-dial.is-open .tt-dial-btn,
.tt-dial-btn:focus-visible {
  outline: none; border-color: #1B7EE8; box-shadow: 0 0 0 3px rgba(27, 126, 232, .25);
}
.tt-dial-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: block; flex: 0 0 auto; background: rgba(255, 255, 255, .08); }
.tt-dial-code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.tt-dial-caret { width: 10px; height: 10px; flex: 0 0 auto; opacity: .65; transition: transform .15s ease; }
.tt-dial.is-open .tt-dial-caret { transform: rotate(180deg); }
.tt-dial-list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  width: max(230px, 100%); max-height: 240px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #101B2D; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .55);
}
.tt-dial-list[hidden] { display: none; }
.tt-dial-group-label {
  padding: 6px 8px 4px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #5A6B85;
}
.tt-dial-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #F5F7FA; }
.tt-dial-option:hover, .tt-dial-option.is-active { background: rgba(27, 126, 232, .2); }
.tt-dial-option img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; background: rgba(255, 255, 255, .08); }
.tt-dial-option-code { margin-left: auto; padding-left: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #8A9AB2; white-space: nowrap; }
#tt-demo-form .tt-phone-field input.tt-phone-input { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.tt-demo-submit {
  width: 100%; margin-top: 6px; padding: 12px; border: 0; border-radius: 10px;
  background: #1B7EE8; color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .2s ease;
}
.tt-demo-submit:hover { background: #0F5FBA; }
.tt-demo-submit:disabled { opacity: .6; cursor: default; }
.tt-demo-error {
  margin: 2px 0 10px; font-size: 12.5px; line-height: 1.5;
  color: #F7B4B4; background: rgba(242, 122, 122, .12);
  border: 1px solid rgba(242, 122, 122, .3); border-radius: 8px; padding: 8px 10px;
}
.tt-demo-error a { color: #fff; text-decoration: underline; }
.tt-demo-later {
  width: 100%; margin-top: 8px; padding: 6px; border: 0; background: transparent;
  color: #8A9AB2; font: inherit; font-size: 13px; cursor: pointer;
}
.tt-demo-later:hover { color: #fff; }
.tt-demo-fineprint { margin-top: 12px; font-size: 11px; color: #5A6B85; text-align: center; }
.tt-demo-success { text-align: center; }
.tt-demo-success svg { width: 42px; height: 42px; color: #6DBE2C; margin: 8px auto 12px; display: block; }
.tt-demo-success p { color: #B9C6D9; font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
@media (max-width: 420px) { .tt-demo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .tt-demo-overlay, .tt-demo-card { transition: none; }
}
