/* =============================================================================
   marketing.css — the marketing site's own design system.

   Loaded LAST on every base.html page (after the legacy, minified style.css
   that was scraped from the old WordPress theme). Two jobs:

   1. Tokens + components (prefixed `ta-`) that new/redesigned sections are
      written against instead of Bootstrap classes. Prefer these for any new
      marketing markup.
   2. A small set of global overrides that pull the legacy pages (landing
      pages, blog posts, header/footer) onto the same tokens: Inter, one
      button system, one radius, no letter-spacing, no shadows at rest.

   Marketing pages have a 10px root font-size (style.css), so everything here
   is in px. Never put Tailwind utilities on base.html pages: style.css
   defines colliding Bootstrap class names (mt-4, p-5, shadow-sm, border…)
   and the 10px root would shrink Tailwind's rem scale to 62%.
   ========================================================================== */

:root {
  --ta-navy: #112f52;        /* headings, body, primary text */
  --ta-sky: #0099ec;         /* links, icons, logo */
  --ta-sky-dark: #0080c9;
  --ta-orange: #f7892d;      /* primary buttons only */
  --ta-orange-hover: #e07a22;
  --ta-pale: #e9f6fe;        /* hero band only */
  --ta-section: #f5f8fb;     /* alternating sections */
  --ta-text-2: #4b5f78;      /* secondary text (replaces #9ca3af / #6c757d) */
  --ta-text-3: #7c8ca0;      /* meta, captions */
  --ta-border: #c9d6e4;      /* the only border colour */
  --ta-border-soft: #e3ebf3; /* inner dividers on white */
  --ta-tint: #eef4fa;        /* secondary button hover, inline code */
  --ta-radius: 6px;
  --ta-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ta-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* -----------------------------------------------------------------------------
   1. Global overrides (apply to every base.html page)
   -------------------------------------------------------------------------- */

body {
  font-family: var(--ta-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ta-navy);
  background-color: #fff;
}
.page-holder { background: #fff; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ta-font);
  color: var(--ta-navy);
  letter-spacing: 0;
  text-transform: none;
}
h1, .h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
h2, .h2 { font-size: 32px; line-height: 1.2; font-weight: 700; }
h3, .h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
h4, .h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }
h5, h6, .h5, .h6 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.5; font-weight: 400; color: var(--ta-text-2); }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-size: 44px; line-height: 1.1; font-weight: 700;
}
small, .small { font-size: 13px; line-height: 1.5; }
.text-muted { color: var(--ta-text-2) !important; }

@media (max-width: 767.98px) {
  h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-size: 34px; }
  h2, .h2 { font-size: 26px; }
}

code, pre {
  font-family: var(--ta-mono);
  color: inherit;
}
code {
  font-size: 0.9em;
  background: var(--ta-tint);
  padding: 1px 5px;
  border-radius: 4px;
}
pre { background: var(--ta-tint); border-radius: var(--ta-radius); padding: 14px 16px; font-size: 14px; }
pre code { background: none; padding: 0; }

/* Radius: one value. Pills only survive on avatars (.rounded-circle). */
.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .rounded-5, .rounded-pill,
.card, .alert { border-radius: var(--ta-radius) !important; }

/* Shadows: none at rest. The navy offset block survives only on the hero frame. */
.shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }
.card { border: 1px solid var(--ta-border) !important; box-shadow: none; }
.card .card-title a { color: var(--ta-navy); }

/* Gradients: none. */
.bg-gradient { background-image: none !important; }

/* Section tint: pale blue is for hero bands; alternating sections use the
   cooler grey-blue so white cards are not forced into boxes. */
.bg-light { background-color: var(--ta-section) !important; }

/* Letter-spacing: 0 everywhere except 12px uppercase labels. */
.slogan, .nav-item, .user-info, .login-hold, .login-link, .nav-link, .btn { letter-spacing: 0 !important; }

/* Legacy Bootstrap container: cap it to the same measure as .ta-container so
   header, footer and legacy pages line up with the redesigned sections
   (style.css allows 1716px, which runs edge to edge at 1440). */
.container { max-width: 1180px; }

/* phase2.css shrinks column padding on blog/use-case/landing pages to 10px
   while rows keep the 72px gutter, which pushes content to the viewport edge
   and nested footer rows off-canvas. Restore the gutter. */
.use-case-page .row > [class*='col-'],
.comparison-page .row > [class*='col-'],
.landing-page .row > [class*='col-'],
.blog-page .row > [class*='col-'],
.demo-page .row > [class*='col-'] {
  padding-left: calc(var(--bs-gutter-x) * .5);
  padding-right: calc(var(--bs-gutter-x) * .5);
}

/* phase2.css also gives every row/column on those pages a bottom margin,
   which reaches into the header (143px on use-case pages, 158px on blog
   posts). The header keeps its own spacing. */
.header .container > .row, .header .row > [class*='col-'] { margin-bottom: 0 !important; }
.header .container ul, .header .container li { margin-bottom: 0 !important; line-height: 1.5 !important; font-size: 15px !important; padding-left: 0 !important; }
.header .container .nav-item { padding: 0 28px 0 0 !important; }
.header .dropdown-item { font-size: 15px; line-height: 1.5; }

/* Dark bands: flat navy (no sky-blue slabs, no gradients), white text. */
.bg-primary { background-color: var(--ta-navy) !important; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4,
.text-white h1, .text-white h2, .text-white h3, .text-white h4,
.bg-primary .h1, .bg-primary .h2, .bg-primary .h3, .text-white .h1, .text-white .h2, .text-white .h3 { color: #fff; }
.bg-primary .lead, .bg-secondary .lead, .text-white .lead,
.bg-primary p, .bg-secondary p, .text-white p { color: rgba(255, 255, 255, 0.85); }
.bg-primary .text-muted, .bg-secondary .text-muted, .text-white .text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.bg-primary a:not(.btn):not(.ta-btn), .text-white a:not(.btn):not(.ta-btn) { color: #fff; }

/* Horizontal overflow guard. phase2.css uses overflow-x:hidden on html AND
   body and style.css sets .page-holder{overflow:hidden}; both turn those
   boxes into scroll containers, which silently defeats position:sticky
   anywhere on the page. `clip` keeps the guard without creating one. */
body { overflow-x: clip; }
.page-holder { overflow: visible; overflow-x: clip; }
.visual-section, .header { overflow-x: clip; }

/* ---- Header / nav ---- */
.header { text-transform: none; }
.navbar-nav .nav-link, .login-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ta-sky);
  text-decoration: none;
}
.navbar-nav .nav-link:hover, .login-link:hover { color: var(--ta-navy); }
.user-info, .login-hold, .login-link { text-transform: none; }
.login-hold { flex: none; white-space: nowrap; }
.header .navbar-toggler { margin-left: 14px !important; }
/* style.css grows the header padding (pt-wide-40/pb-wide-35), the logo
   (max-width 18rem below 1366px, full 243px above) and, at >=1600px, the nav
   spacing (.nav-item padding-right 6rem, .login-hold margin-right 4rem,
   .user-info .btn min-width 26.2rem). With the 1180px container that nav no
   longer fits, flex squeezes .login-hold to 10px and the header grows to
   231px. One set of values for every desktop width instead. */
@media (min-width: 1024px) {
  .header { padding-top: 20px !important; padding-bottom: 20px !important; }
  .header .logo { max-width: 200px; margin-right: 36px; }
  .header .logo img { width: 100%; height: auto; }
  .navbar-expand-lg .nav-item { padding-right: 28px; border: 0; }
  .navbar-expand-lg .navbar-nav .nav-link { padding-left: 0; padding-right: 0; }
  .login-hold { margin-right: 20px; }
  .user-info .btn { min-width: 0; }
}
.dropdown-menu { border: 1px solid var(--ta-border); border-radius: var(--ta-radius); font-size: 15px; }
.dropdown-item { font-weight: 500; }
@media (max-width: 1023.98px) {
  .nav-item, .user-info { font-size: 16px; font-weight: 600; }
}

/* ---- Footer: brand column plus four equal link columns across the container ---- */
.ta-footer {
  background: var(--ta-navy);
  color: #fff;
  padding: 64px 0 24px;
  margin-top: auto;
}
.ta-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 153, 236, 0.45);
}
.ta-footer__logo { display: inline-block; max-width: 240px; }
.ta-footer__logo img { display: block; width: 100%; height: auto; }
.ta-footer__slogan { margin: 16px 0 0; font-size: 15px; color: #fff; }
.ta-footer__slogan strong { font-weight: 500; }
.ta-footer__col h3 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin: 4px 0 14px; }
.ta-footer .nav-list { list-style: none; margin: 0; padding: 0; }
.ta-footer .nav-list li { margin: 0 0 10px; line-height: 1.4; }
.ta-footer .nav-list a { color: var(--ta-sky); font-size: 14px; text-decoration: none; white-space: nowrap; }
.ta-footer .nav-list a:hover { color: #fff; }
.ta-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.ta-footer__legal { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ta-footer__legal a { color: var(--ta-sky); text-decoration: none; }
.ta-footer__legal a:hover { color: #fff; }
@media (max-width: 991.98px) {
  .ta-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-footer__brand { grid-column: 1 / -1; }
  .ta-footer .nav-list a { white-space: normal; }
}
@media (max-width: 767.98px) {
  .ta-footer { padding-top: 48px; }
  .ta-footer__bottom { justify-content: center; text-align: center; }
}

/* ---- One button system -------------------------------------------------
   The legacy Bootstrap classes are remapped so that landing pages and blog
   posts get the same three buttons without touching their markup:
     primary   = .btn-primary, .btn-warning, .btn-info (nav)
     secondary = every .btn-outline-*, .btn-secondary, .btn-dark
   New markup should use .ta-btn instead (same look, no Bootstrap).            */
.btn, .ta-btn {
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 18px;
  --bs-btn-font-size: 15px;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-radius: var(--ta-radius);
  --bs-btn-box-shadow: none;
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(0, 153, 236, 0.25);
  display: inline-block;
  padding: 10px 18px;                 /* 44px tall */
  margin: 0;
  min-width: 0;
  font-family: var(--ta-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--ta-radius) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.text-uppercase { text-transform: none !important; }
.btn.w-100 { width: auto !important; }
.btn-lg, .ta-btn--lg { padding: 12px 22px; font-size: 16px; --bs-btn-font-size: 16px; }
.btn-sm, .ta-btn--sm { padding: 7px 14px; font-size: 13px; --bs-btn-font-size: 13px; }

.btn-primary, .btn-warning, .btn-info, .btn-success,
.ta-btn--primary {
  --bs-btn-color: var(--ta-navy);
  --bs-btn-bg: var(--ta-orange);
  --bs-btn-border-color: var(--ta-orange);
  --bs-btn-hover-color: var(--ta-navy);
  --bs-btn-hover-bg: var(--ta-orange-hover);
  --bs-btn-hover-border-color: var(--ta-orange-hover);
  --bs-btn-active-color: var(--ta-navy);
  --bs-btn-active-bg: var(--ta-orange-hover);
  --bs-btn-active-border-color: var(--ta-orange-hover);
  --bs-btn-disabled-color: var(--ta-navy);
  --bs-btn-disabled-bg: var(--ta-orange);
  --bs-btn-disabled-border-color: var(--ta-orange);
  background-color: var(--ta-orange);
  border-color: var(--ta-orange);
  color: var(--ta-navy);
}
.btn-primary:hover, .btn-warning:hover, .btn-info:hover, .btn-success:hover,
.ta-btn--primary:hover, .ta-btn--primary:focus-visible {
  background-color: var(--ta-orange-hover);
  border-color: var(--ta-orange-hover);
  color: var(--ta-navy);
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-warning, .btn-outline-dark,
.btn-outline-light, .btn-secondary, .btn-dark, .btn-light,
.ta-btn--secondary {
  --bs-btn-color: var(--ta-navy);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--ta-border);
  --bs-btn-hover-color: var(--ta-navy);
  --bs-btn-hover-bg: var(--ta-tint);
  --bs-btn-hover-border-color: var(--ta-border);
  --bs-btn-active-color: var(--ta-navy);
  --bs-btn-active-bg: var(--ta-tint);
  --bs-btn-active-border-color: var(--ta-border);
  --bs-btn-disabled-color: var(--ta-text-3);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--ta-border);
  background-color: transparent;
  border-color: var(--ta-border);
  color: var(--ta-navy);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-warning:hover,
.btn-outline-dark:hover, .btn-outline-light:hover, .btn-secondary:hover, .btn-dark:hover,
.btn-light:hover, .ta-btn--secondary:hover, .ta-btn--secondary:focus-visible {
  background-color: var(--ta-tint);
  border-color: var(--ta-border);
  color: var(--ta-navy);
}
/* Buttons inside a dark band (.bg-primary, .bg-secondary, .ta-band, .text-white):
   the primary is still orange; the secondary is a white outline on transparent. */
.bg-primary .btn-light, .bg-secondary .btn-light, .text-white .btn-light,
.bg-primary .btn-primary, .bg-secondary .btn-primary, .text-white .btn-primary,
.bg-primary .btn-warning, .bg-secondary .btn-warning, .text-white .btn-warning {
  background-color: var(--ta-orange);
  border-color: var(--ta-orange);
  color: var(--ta-navy);
}
.bg-primary .btn-light:hover, .bg-secondary .btn-light:hover, .text-white .btn-light:hover,
.bg-primary .btn-primary:hover, .bg-secondary .btn-primary:hover, .text-white .btn-primary:hover,
.bg-primary .btn-warning:hover, .bg-secondary .btn-warning:hover, .text-white .btn-warning:hover {
  background-color: var(--ta-orange-hover);
  border-color: var(--ta-orange-hover);
  color: var(--ta-navy);
}
.ta-btn--secondary.ta-btn--on-dark,
.bg-primary .btn-outline-light, .bg-secondary .btn-outline-light, .text-white .btn-outline-light,
.bg-primary .btn-outline-primary, .bg-secondary .btn-outline-primary, .text-white .btn-outline-primary,
.bg-primary .btn-secondary, .bg-secondary .btn-secondary, .text-white .btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.ta-btn--secondary.ta-btn--on-dark:hover,
.bg-primary .btn-outline-light:hover, .bg-secondary .btn-outline-light:hover, .text-white .btn-outline-light:hover,
.bg-primary .btn-outline-primary:hover, .bg-secondary .btn-outline-primary:hover, .text-white .btn-outline-primary:hover,
.bg-primary .btn-secondary:hover, .bg-secondary .btn-secondary:hover, .text-white .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
.bg-primary .d-flex, .bg-secondary .d-flex, .text-white .d-flex { gap: 10px; }
.bg-primary :not(.d-flex) > .btn + .btn, .bg-secondary :not(.d-flex) > .btn + .btn, .text-white :not(.d-flex) > .btn + .btn { margin-left: 10px; }

/* Kill the legacy "lift" hover (navy block behind the hero button). */
.btn-hover-wrap { display: inline-block; }
.btn-hover-wrap::before { display: none !important; }
.btn-hover-wrap .btn:hover { transform: none !important; }

/* Text link (the third allowed CTA) */
.ta-link {
  color: var(--ta-sky);
  font-weight: 500;
  text-decoration: none;
}
.ta-link:hover { color: var(--ta-sky-dark); text-decoration: underline; }

.ta-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ta-btn-row small, .ta-btn-row .ta-note { flex-basis: 100%; }
.ta-note { font-size: 13px; color: var(--ta-text-3); margin: 0; }

/* -----------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.ta-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.ta-container--narrow { max-width: 760px; }
.ta-container--wide { max-width: 1280px; }

.ta-section { padding: 72px 0; }
.ta-section--tight { padding: 48px 0; }
.ta-section--alt { background: var(--ta-section); }
.ta-section--hero { background: var(--ta-pale); }
.ta-section--divided { border-top: 1px solid var(--ta-border-soft); }

.ta-section__head { max-width: 640px; margin-bottom: 36px; }
.ta-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ta-section__head h2, .ta-section__head h1, .ta-section__head .h2 { margin: 0 0 10px; }
.ta-section__head p { margin: 0; }

.ta-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ta-text-3);
  margin-bottom: 10px;
}
.ta-lede { font-size: 18px; line-height: 1.5; color: var(--ta-text-2); margin: 0 0 20px; max-width: 46ch; }
.ta-lede--wide { max-width: none; }
.ta-meta { font-size: 13px; color: var(--ta-text-3); }
.ta-text-2 { color: var(--ta-text-2); }

/* Two-column (copy + visual) */
.ta-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.ta-two--reverse > :first-child { order: 2; }

/* Text columns */
.ta-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ta-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ta-cols h3 { margin: 0 0 8px; }
.ta-cols p { margin: 0 0 10px; color: var(--ta-text-2); }

/* -----------------------------------------------------------------------------
   3. The one card system: a bordered grid with dividers, no boxes.
   The 1px gap on a border-coloured background draws the dividers for any
   column count without nth-child maths.
   -------------------------------------------------------------------------- */
.ta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ta-border);
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  overflow: hidden;
}
.ta-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ta-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ta-grid > * {
  background: #fff;
  padding: 24px;
  margin: 0;
  min-width: 0;
}
.ta-grid--alt > * { background: var(--ta-section); }
.ta-grid__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
.ta-grid__title a { color: inherit; text-decoration: none; }
.ta-grid__title a:hover { color: var(--ta-sky); }
.ta-grid p { color: var(--ta-text-2); margin: 0 0 12px; }
.ta-grid p:last-child { margin-bottom: 0; }
.ta-grid__step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ta-tint);
  color: var(--ta-sky);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

/* Brand line icons beside headings: 20px, never 60px as content. */
.ta-icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--ta-sky);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ta-icon--img { width: 20px; height: 20px; flex: none; object-fit: contain; }

/* -----------------------------------------------------------------------------
   4. Product frame (screenshots), flat band, divider list, FAQ
   -------------------------------------------------------------------------- */
.ta-frame {
  display: block;
  background: #fff;
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  overflow: hidden;
}
.ta-frame img { display: block; width: 100%; height: auto; }
.ta-frame--offset { box-shadow: -10px 10px 0 var(--ta-navy) !important; }  /* brand signature, hero only */
.ta-frame__bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ta-border-soft);
  background: #fff;
}
.ta-frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-border); display: block; }
figure.ta-figure { margin: 0; }
figure.ta-figure figcaption { font-size: 13px; color: var(--ta-text-3); margin-top: 8px; }

.ta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px;
  background: var(--ta-navy);
  color: #fff;
  border-radius: var(--ta-radius);
}
.ta-band h2, .ta-band h3 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.ta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 60ch; }
.ta-band > div:first-child { flex: 1 1 320px; min-width: 0; }

.ta-list { margin: 0; padding: 0; list-style: none; }
.ta-list > * {
  padding: 20px 0;
  border-bottom: 1px solid var(--ta-border);
  margin: 0;
}
.ta-list > :first-child { padding-top: 0; }
.ta-list h3 { font-size: 18px; margin: 4px 0 6px; }
.ta-list h3 a { color: var(--ta-navy); text-decoration: none; }
.ta-list h3 a:hover { color: var(--ta-sky); }
.ta-list p { margin: 0; color: var(--ta-text-2); font-size: 15px; }

/* FAQ as a divider list; <details> so it needs no JS or Bootstrap collapse. */
.ta-faq { border-top: 1px solid var(--ta-border); }
.ta-faq details { border-bottom: 1px solid var(--ta-border); }
.ta-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  color: var(--ta-navy);
}
.ta-faq summary::-webkit-details-marker { display: none; }
.ta-faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ta-text-3);
  border-bottom: 1.5px solid var(--ta-text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.ta-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.ta-faq details > div, .ta-faq details > p { padding: 0 0 18px; margin: 0; color: var(--ta-text-2); }
.ta-faq summary h3 { font: inherit; margin: 0; display: inline; }

/* Check list (plan features etc.) */
.ta-checks { margin: 0; padding: 0; list-style: none; }
.ta-checks li { position: relative; padding: 6px 0 6px 24px; margin: 0; }
.ta-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 11px;
  border-right: 1.8px solid var(--ta-sky);
  border-bottom: 1.8px solid var(--ta-sky);
  transform: rotate(45deg);
}

/* Inline lock marker for paid features (replaces yellow PRO pills). */
.ta-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ta-text-3);
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}
.ta-lock svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; }

/* -----------------------------------------------------------------------------
   4b. Long-form text, article chrome, tables, forms, callouts
   -------------------------------------------------------------------------- */

/* Running text for blog posts, guides and tool pages (post.content lands here). */
.ta-prose { color: var(--ta-navy); }
.ta-prose h2 { font-size: 28px; line-height: 1.25; margin: 40px 0 14px; }
.ta-prose h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; }
.ta-prose h4 { font-size: 18px; margin: 24px 0 8px; }
.ta-prose h2:first-child, .ta-prose h3:first-child { margin-top: 0; }
.ta-prose p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; color: var(--ta-navy); }
.ta-prose ul, .ta-prose ol { font-size: 17px; line-height: 1.7; margin: 0 0 18px; padding-left: 24px; }
.ta-prose li { margin: 0 0 8px; }
.ta-prose li > ul, .ta-prose li > ol { margin: 8px 0 0; }
.ta-prose strong { font-weight: 600; color: var(--ta-navy); }
.ta-prose a { color: var(--ta-sky); }
.ta-prose code { background: var(--ta-tint); color: inherit; font-size: 0.9em; padding: 1px 5px; border-radius: 4px; }
.ta-prose pre { background: var(--ta-tint); border-radius: var(--ta-radius); padding: 14px 16px; font-size: 14px; overflow-x: auto; }
.ta-prose pre code { background: none; padding: 0; }
.ta-prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--ta-border); color: var(--ta-text-2); }
.ta-prose blockquote p { color: inherit; }
.ta-prose img { max-width: 100%; height: auto; border-radius: var(--ta-radius); }
.ta-prose figure { margin: 0 0 18px; }
.ta-prose hr { border: 0; border-top: 1px solid var(--ta-border-soft); margin: 32px 0; }
.ta-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; }
.ta-prose th, .ta-prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ta-border-soft); }
.ta-prose th { font-weight: 600; background: var(--ta-section); }

/* Article page chrome (blog posts) */
.ta-article { padding: 40px 0 64px; }
.ta-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ta-text-3);
  white-space: nowrap;
}
.ta-crumbs a { color: var(--ta-text-2); text-decoration: none; flex: none; }
.ta-crumbs a:hover { color: var(--ta-sky); }
.ta-crumbs > span { flex: none; }
.ta-crumbs > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ta-navy); }
.ta-article__head h1 { margin: 0 0 14px; }
.ta-article__head .ta-meta { display: block; margin: 0 0 20px; }
.ta-article__head .ta-frame { margin: 0 0 20px; }
.ta-article__head .ta-lede { max-width: none; margin-bottom: 28px; }

/* Collapsible table of contents */
.ta-toc { margin: 0 0 32px; border-top: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); }
.ta-toc summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 12px 28px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ta-navy);
}
.ta-toc summary::-webkit-details-marker { display: none; }
.ta-toc summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ta-text-3);
  border-bottom: 1.5px solid var(--ta-text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.ta-toc[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.ta-toc ul { list-style: none; margin: 0; padding: 0 0 12px; }
.ta-toc li { margin: 0 0 6px; }
.ta-toc a { font-size: 15px; color: var(--ta-sky); text-decoration: none; }
.ta-toc a:hover { text-decoration: underline; }

/* Author block */
.ta-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ta-border);
}
.ta-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.ta-author__name { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--ta-navy); }
.ta-author__bio { font-size: 15px; color: var(--ta-text-2); margin: 0; }

/* Share row */
.ta-share { margin-top: 32px; font-size: 15px; color: var(--ta-text-3); }
.ta-share__label { display: block; font-size: 13px; color: var(--ta-text-3); margin: 0 0 6px; }

/* Small sentence-case label above a block (not an eyebrow: no uppercase, no tracking). */
.ta-label { display: block; font-size: 14px; font-weight: 600; color: var(--ta-text-3); margin: 0 0 8px; }

/* Callout: a note with an orange rule. */
.ta-callout {
  padding: 20px;
  border-left: 3px solid var(--ta-orange);
  background: var(--ta-section);
  border-radius: 0 var(--ta-radius) var(--ta-radius) 0;
}
.ta-callout h2, .ta-callout h3 { font-size: 18px; margin: 0 0 8px; }
.ta-callout p { margin: 0 0 8px; color: var(--ta-text-2); }
.ta-callout p:last-child { margin-bottom: 0; }

/* Dark band extras */
.ta-band .ta-note { color: rgba(255, 255, 255, 0.7); flex-basis: 100%; }
.ta-band h2 { font-size: 24px; }
.ta-band .ta-lede { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 60ch; }

/* Grid modifiers */
.ta-grid--compact > * { padding: 20px; }
.ta-grid--compact .ta-grid__title { font-size: 18px; }
.ta-grid__sub { font-size: 16px; font-weight: 600; margin: 18px 0 6px; color: var(--ta-navy); }
.ta-grid .ta-checks { margin: 0; }
.ta-grid .ta-checks li { padding-top: 4px; padding-bottom: 4px; color: var(--ta-text-2); }

/* Divider list laid out in two columns */
.ta-list.ta-cols--2 { display: grid; gap: 0 40px; }
.ta-list.ta-cols--2 > :first-child { padding-top: 20px; }

/* Stat tile */
.ta-stat__value { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 4px 0 0; color: var(--ta-navy); }
.ta-stat .ta-meta { display: block; }

/* Comparison table (the wrapper keeps its inline width maths for horizontal scroll). */
.ta-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--ta-border); border-radius: var(--ta-radius); }
.ta-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; margin: 0; }
.ta-table th, .ta-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ta-border-soft); }
.ta-table thead th { background: var(--ta-section); font-weight: 600; color: var(--ta-navy); }
.ta-table tbody tr:last-child td { border-bottom: 0; }
.ta-table .ta-table__c { text-align: center; }
.ta-table .ta-icon { display: inline-block; vertical-align: middle; }
.ta-table-note { margin-top: 12px; display: block; }
.ta-icon--muted { stroke: var(--ta-text-3); }

/* Forms */
.ta-form { padding: 24px; }
.ta-form h2 { font-size: 20px; margin: 0 0 20px; }
.ta-form__results { margin-top: 24px; }
.ta-form__results .ta-grid { margin-top: 16px; }
.ta-stat__value--lg { font-size: 36px; }
.ta-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 20px; }
.ta-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ta-navy); margin: 0 0 6px; }
.ta-field .ta-meta { display: block; margin-top: 6px; }
.ta-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: 400 16px/1.4 var(--ta-font);
  color: var(--ta-navy);
  background: #fff;
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  -webkit-appearance: none;
  appearance: none;
}
.ta-input:focus { outline: none; border-color: var(--ta-sky); box-shadow: 0 0 0 3px rgba(0, 153, 236, 0.2); }
.ta-form__error { margin: 12px 0 0; font-size: 14px; color: #b42318; }
.ta-form__error:empty { display: none; }

/* -----------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ta-section { padding: 56px 0; }
  .ta-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 767.98px) {
  .ta-section { padding: 44px 0; }
  .ta-two, .ta-two--reverse { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ta-two--reverse > :first-child { order: 0; }
  .ta-grid, .ta-grid--3, .ta-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .ta-cols, .ta-cols--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ta-list.ta-cols--2 { gap: 0; }
  .ta-list.ta-cols--2 > :first-child { padding-top: 0; }
  .ta-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ta-article { padding: 28px 0 48px; }
  .ta-prose h2 { font-size: 24px; }
  .ta-band { padding: 24px 20px; }
  .ta-frame--offset { box-shadow: -6px 6px 0 var(--ta-navy) !important; }
  .ta-container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .ta-grid > * { padding: 20px 16px; }
  .ta-btn-row .ta-btn, .ta-btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .ta-btn, .ta-faq summary::after { transition: none; }
}
