/* ==========================================================================
   Clovo — Dark Theme Redesign
   Inspired by shaders.com aesthetic: dark surfaces, subtle borders,
   sophisticated type hierarchy, blue/purple accents.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
  --bg:          #181819;
  --bg-surface:  #202022;
  --bg-elevated: #26262a;
  --bg-hover:    #2a2a35;
  --border:      #292a35;
  --border-hover:#3a3b48;
  --text-dim:    #697088;
  --text:        #81879c;
  --text-hi:     #d1d7ea;
  --text-bright: #e6e9fa;
  --accent:      #51CD98;
  --accent-hover:#3ba87a;
  --accent-soft: rgba(81,205,152,0.12);
  --purple:      #ac4bff;
  --green:       #3dc372;
  --red:         #ef4444;

  /* Brand gradient system — based on the #51CD98 mint primary.
     Flows mint → teal → cool blue, mirroring the warm-to-cool arc of the
     original pink→purple→blue gradient but cooler and on-brand. */
  --brand:           #51CD98;
  --brand-hover:     #3ba87a;
  --brand-soft:      rgba(81, 205, 152, 0.12);
  --brand-mid:       #3ec3c8;
  --brand-end:       #3a8eef;
  --brand-gradient:  linear-gradient(135deg, #51CD98, #3ec3c8, #3a8eef);
  --radius:      0.75rem;
  --radius-lg:   1rem;
  --font-display:'Albert Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 0 0 1px var(--border), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover:0 0 0 1px var(--border-hover), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px rgba(81,205,152,0.08);
}


/* --- Global -------------------------------------------------------------- */

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: rgba(81, 205, 152, 0.25);
  color: var(--text-bright);
}


/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-medium, .uk-heading-large, .uk-heading-xlarge,
.uk-heading-2xlarge, .uk-heading-3xlarge {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
}

.uk-font-primary,
.uk-font-secondary,
.uk-font-tertiary {
  font-family: var(--font-display) !important;
}

.uk-font-tertiary {
  font-weight: 700;
}

p {
  color: var(--text);
}

.uk-text-lead {
  font-family: var(--font-body);
  color: var(--text-hi);
}

.uk-text-meta {
  font-family: var(--font-body);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.uk-text-small {
  font-family: var(--font-body);
  color: var(--text);
}

.uk-text-muted {
  color: var(--text-dim) !important;
}

.uk-text-primary {
  color: var(--accent) !important;
}

/* uk-text-secondary defaults to a deep purple #6b21a8 in the theme.
   Re-tint to brand mint, plus brand-tint any inlined SVG icons that use it. */
.uk-text-secondary {
  color: var(--brand) !important;
}

img.uk-text-secondary[src$=".svg"],
.uk-text-secondary > img.el-image[src$=".svg"] {
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(632%)
    hue-rotate(101deg)
    brightness(95%)
    contrast(86%) !important;
}

svg.uk-text-secondary,
svg.uk-text-secondary path,
svg.uk-text-secondary g,
svg.uk-text-secondary circle,
svg.uk-text-secondary rect {
  fill: var(--brand) !important;
  color: var(--brand) !important;
}

/* Gradient text — matches the gradient-border CTA button */
h1.uk-text-primary,
.uk-heading-medium .uk-text-primary {
  background: var(--brand-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.uk-text-danger {
  color: var(--red) !important;
}

.uk-text-success {
  color: var(--green) !important;
}


/* --- Links --------------------------------------------------------------- */

a {
  color: var(--text-hi);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}


/* --- Sections ------------------------------------------------------------ */

.uk-section-default {
  background-color: var(--bg);
  color: var(--text);
}

.uk-section-muted {
  background-color: var(--bg-surface);
  color: var(--text);
}

.uk-section-primary {
  background-color: var(--bg-surface);
  color: var(--text);
}

.uk-section-secondary {
  background-color: var(--bg-elevated);
  color: var(--text);
}

/* Override ALL inverse/preserve-color text in dark sections */
.uk-section-primary:not(.uk-preserve-color),
.uk-section-primary:not(.uk-preserve-color) h1,
.uk-section-primary:not(.uk-preserve-color) h2,
.uk-section-primary:not(.uk-preserve-color) h3,
.uk-section-primary:not(.uk-preserve-color) h4,
.uk-section-primary:not(.uk-preserve-color) .uk-h1,
.uk-section-primary:not(.uk-preserve-color) .uk-h2,
.uk-section-primary:not(.uk-preserve-color) .uk-h3,
.uk-section-primary:not(.uk-preserve-color) .uk-h4,
.uk-section-default h1, .uk-section-default h2,
.uk-section-default h3, .uk-section-default h4,
.uk-section-default .uk-h1, .uk-section-default .uk-h2,
.uk-section-default .uk-h3, .uk-section-default .uk-h4,
.uk-section-muted h1, .uk-section-muted h2,
.uk-section-muted h3, .uk-section-muted h4,
.uk-section-muted .uk-h1, .uk-section-muted .uk-h2,
.uk-section-muted .uk-h3, .uk-section-muted .uk-h4 {
  color: var(--text-bright);
}

.uk-section-primary:not(.uk-preserve-color) p,
.uk-section-primary:not(.uk-preserve-color) .uk-text-meta,
.uk-section-default p,
.uk-section-muted p {
  color: var(--text);
}

.uk-section-primary:not(.uk-preserve-color) a:not(.uk-button),
.uk-section-default a:not(.uk-button):not(.uk-logo):not(.uk-navbar-item) {
  color: var(--text-hi);
}

.uk-section-primary:not(.uk-preserve-color) a:not(.uk-button):hover,
.uk-section-default a:not(.uk-button):not(.uk-logo):not(.uk-navbar-item):hover {
  color: var(--accent);
}


/* --- Tiles --------------------------------------------------------------- */

.uk-tile-default {
  background-color: var(--bg);
}

.uk-tile-muted {
  background-color: var(--bg-surface);
}

.uk-tile-primary {
  background-color: var(--bg-surface);
}

.uk-tile-secondary {
  background-color: var(--bg-elevated);
}

.uk-tile-muted.uk-tile-hover:hover,
.uk-tile-primary.uk-tile-hover:hover {
  background-color: var(--bg-hover);
}

/* Tile text */
.uk-tile-default, .uk-tile-muted, .uk-tile-primary, .uk-tile-secondary {
  color: var(--text);
}

.uk-tile-primary:not(.uk-preserve-color) h1,
.uk-tile-primary:not(.uk-preserve-color) h2,
.uk-tile-primary:not(.uk-preserve-color) h3,
.uk-tile-primary:not(.uk-preserve-color) .uk-h1,
.uk-tile-primary:not(.uk-preserve-color) .uk-h2,
.uk-tile-primary:not(.uk-preserve-color) .uk-h3,
.uk-tile-muted h1, .uk-tile-muted h2, .uk-tile-muted h3,
.uk-tile-muted .uk-h1, .uk-tile-muted .uk-h2, .uk-tile-muted .uk-h3 {
  color: var(--text-bright);
}

.uk-tile-primary:not(.uk-preserve-color) a:not(.uk-button) {
  color: var(--text-hi);
}

.uk-tile-primary:not(.uk-preserve-color) a:not(.uk-button):hover {
  color: var(--accent);
}


/* --- Navigation ---------------------------------------------------------- */

.uk-navbar-container {
  font-family: var(--font-body);
  background: rgba(24, 24, 25, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.uk-navbar-container:not(.uk-navbar-transparent) {
  background: rgba(24, 24, 25, 0.85) !important;
}

.uk-navbar-nav > li > a {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
  color: var(--text-bright);
}

/* Override the theme's red (#ff516a) hover/open underline with the brand mint */
.uk-navbar-nav > li:hover > a::before,
.uk-navbar-nav > li > a[aria-expanded="true"]::before {
  background-color: var(--brand) !important;
}

/* Sign in / Register pair on the right ----------------------------------- */
/* Don't draw the standard nav underline on these */
.uk-navbar-right .uk-navbar-nav > li:hover > a::before,
.uk-navbar-right .uk-navbar-nav > li > a[aria-expanded="true"]::before {
  background: none !important;
}

/* Sign in + Register — matched compact nav buttons of equal height.
   Sign in = ghost outline, Register = solid mint. Same height, same
   border-radius, clean and restrained. */
.uk-navbar-right .uk-navbar-nav > li {
  display: flex;
  align-items: center;
}

.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au/"],
.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au"],
.uk-navbar-right .uk-navbar-nav > li > a[href*="studio.clovo.au/register"] {
  height: 34px;
  padding: 0 0.875rem !important;
  margin: 0;
  border-radius: 0.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Sign in — quiet ghost with thin border */
.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au/"],
.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au"] {
  color: var(--text-hi) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au/"]:hover,
.uk-navbar-right .uk-navbar-nav > li > a[href="https://studio.clovo.au"]:hover {
  color: var(--text-bright) !important;
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
}

/* Register — solid mint CTA, dark text for AA contrast */
.uk-navbar-right .uk-navbar-nav > li > a[href*="studio.clovo.au/register"] {
  margin-left: 0.375rem;
  color: #0f1114 !important;
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
}

.uk-navbar-right .uk-navbar-nav > li > a[href*="studio.clovo.au/register"]:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #0f1114 !important;
}

/* Kill any default UIKit nav underline on these buttons */
.uk-navbar-right .uk-navbar-nav > li:hover > a::before,
.uk-navbar-right .uk-navbar-nav > li > a[aria-expanded="true"]::before {
  background: none !important;
  display: none !important;
}

/* --- Dropdown / Dropbar — dark theme only -------------------------------- */

.uk-navbar-dropdown,
.uk-drop.uk-navbar-dropdown {
  background: var(--bg-surface) !important;
  color: var(--text);
}

.uk-dropbar,
.uk-navbar-dropbar,
[class*="uk-dropbar"] {
  background: var(--bg-surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

.uk-navbar-dropdown .uk-grid-divider > :not(.uk-first-column)::before {
  border-left-color: var(--border);
}

.uk-navbar-dropdown .uk-nav-secondary > li > a {
  color: var(--text-bright);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.35;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.uk-navbar-dropdown .uk-nav-secondary > li > a:hover {
  color: var(--text-bright);
}

.uk-navbar-dropdown .uk-nav-secondary .uk-nav-subtitle {
  color: var(--text) !important;
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Icon tile — soft red chip wrapping the SVG */
.uk-navbar-dropdown .uk-nav-secondary .uk-width-auto {
  flex: 0 0 auto;
  width: 44px !important;
  height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.uk-navbar-dropdown .uk-nav-secondary .el-link:hover .uk-width-auto {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 2px 12px rgba(81, 205, 152, 0.08);
  transform: translateY(-1px);
}

.uk-navbar-dropdown .uk-nav-secondary .uk-width-auto img,
.uk-navbar-dropdown .uk-nav-secondary .uk-width-auto svg {
  width: 24px !important;
  height: 24px !important;
}

/* Override the inherited red color on nav icons in favour of the subtle
   blue accent used elsewhere. Only matters if uk-svg inlines the <img>. */
.uk-navbar-dropdown .uk-text-danger {
  color: var(--accent) !important;
}

.uk-navbar-dropdown .uk-nav-default > li > a {
  color: var(--text-hi);
}

.uk-navbar-dropdown .uk-nav-default > li > a:hover {
  color: var(--text-bright);
}

/* Hello Clovo — proper greeting heading with brand gradient */
.uk-navbar-dropdown .uk-h5,
.uk-navbar-dropdown .el-title {
  color: var(--text-bright) !important;
}

.uk-navbar-dropdown > .uk-grid .uk-width-1-4\@m .el-title.uk-h5 {
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin-bottom: 0.75rem !important;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 60%, var(--brand) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.uk-navbar-dropdown > .uk-grid .uk-width-1-4\@m .el-title.uk-h5::after {
  content: " 👋";
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: initial;
  margin-left: 0.125rem;
}

.uk-navbar-dropdown > .uk-grid .uk-width-1-4\@m .el-content p {
  color: var(--text-hi) !important;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.uk-navbar-dropdown .uk-panel p {
  color: var(--text) !important;
}

/* --- Company dropdown ---------------------------------------------------- */

/* Give the left column some padding so content has breathing room */
.uk-navbar-dropdown > .uk-container > .uk-grid > .uk-width-1-5\@m {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Nav links — clean, readable, with subtle tile-style hover */
.uk-navbar-dropdown .uk-nav-default {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.uk-navbar-dropdown .uk-nav-default > li > a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-hi);
  padding: 0.5rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: 8px;
  display: block;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.uk-navbar-dropdown .uk-nav-default > li > a:hover {
  color: var(--text-bright);
  background-color: rgba(255, 255, 255, 0.03);
}

/* About us — gradient-border CTA to match site hero/pricing buttons */
.uk-navbar-dropdown .uk-button-primary.el-content {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface) !important;
  color: var(--text-bright) !important;
  border: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius) !important;
  overflow: visible;
  transition: color 0.15s ease;
}

.uk-navbar-dropdown .uk-button-primary.el-content::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius) + 1.5px);
  background: var(--brand-gradient);
  z-index: -1;
}

.uk-navbar-dropdown .uk-button-primary.el-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-surface);
  z-index: -1;
  transition: background 0.15s ease;
}

.uk-navbar-dropdown .uk-button-primary.el-content:hover::after {
  background: var(--bg-elevated);
}

.uk-navbar-dropdown .uk-button-primary.el-content:hover {
  color: #fff !important;
}

/* Social icons — subtle, brighten on hover */
.uk-navbar-dropdown .uk-icon-button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.uk-navbar-dropdown .uk-icon-button:hover {
  border-color: var(--border-hover);
  color: var(--text-bright);
  background: transparent;
}

/* Right column — article cards */
.uk-navbar-dropdown article.el-item {
  transition: transform 0.2s ease;
}

.uk-navbar-dropdown article > a:first-child {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.uk-navbar-dropdown article .el-image {
  border-radius: 0.75rem !important;
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.uk-navbar-dropdown article > a:first-child:hover .el-image {
  opacity: 0.85;
}

.uk-navbar-dropdown article .el-meta {
  color: var(--text-dim) !important;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-top: 0.875rem !important;
}

.uk-navbar-dropdown article .el-title {
  font-size: 0.9375rem !important;
  line-height: 1.4;
  margin-top: 0.375rem !important;
}

.uk-navbar-dropdown article .el-title a {
  color: var(--text-bright) !important;
  font-weight: 500;
  transition: color 0.15s ease;
}

.uk-navbar-dropdown article .el-title a:hover {
  color: var(--accent) !important;
}

.uk-navbar-toggle {
  color: var(--text-hi);
}

.uk-logo {
  font-family: var(--font-display);
  color: var(--text-bright);
}

/* Sticky nav */
.uk-sticky-fixed {
  background: rgba(24, 24, 25, 0.9) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}


/* --- Buttons ------------------------------------------------------------- */

.uk-button {
  font-family: var(--font-body);
  border-radius: var(--radius) !important;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

/* Solid mint button. White text on #51CD98 fails WCAG AA (~1.8:1), so we
   paint the label in the page's darkest neutral for a 10:1 ratio — same
   treatment GitHub, Stripe and Linear use on their green CTAs. */
.uk-button-primary {
  background-color: var(--accent);
  color: var(--bg);
  border: 1px solid transparent;
  font-weight: 600;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
  background-color: var(--accent-hover);
  color: var(--bg);
}

.uk-button-secondary {
  background-color: var(--bg-elevated);
  color: var(--text-hi);
  border: 1px solid var(--border);
}

.uk-button-secondary:hover,
.uk-button-secondary:focus {
  background-color: var(--bg-hover);
  color: var(--text-bright);
  border-color: var(--border-hover);
}

/* Gradient-border CTA — "Unlock with Pro" style */
.uk-button-secondary.uk-button-large {
  position: relative;
  background: var(--bg) !important;
  border: none !important;
  color: var(--text-bright);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 52px;
  z-index: 0;
  overflow: visible;
  isolation: isolate;
}

.uk-button-secondary.uk-button-large::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px) !important;
  background: var(--brand-gradient);
  z-index: -1;
}

.uk-button-secondary.uk-button-large::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius) !important;
  background: var(--bg);
  z-index: -1;
}

.uk-button-secondary.uk-button-large:hover,
.uk-button-secondary.uk-button-large:focus {
  background: var(--bg-elevated) !important;
  color: #fff;
}

.uk-button-secondary.uk-button-large:hover::after {
  background: var(--bg-elevated);
}

.uk-button-default {
  background-color: transparent;
  color: var(--text-hi);
  border: 1px solid var(--border);
}

.uk-button-default:hover,
.uk-button-default:focus {
  background-color: var(--bg-elevated);
  color: var(--text-bright);
  border-color: var(--border-hover);
}

.uk-button-danger {
  background-color: var(--red);
  color: #fff;
  border: 1px solid transparent;
}

.uk-button-danger:hover,
.uk-button-danger:focus {
  background-color: #dc2626;
  color: #fff;
}

/* "Start today" CTA section — dark gradient overlay on background video
   so the headline and button read cleanly, with a subtle mint tint at the
   edges to tie the video into the brand palette. */
.uk-section-primary.uk-position-relative.uk-section-xlarge {
  position: relative;
  isolation: isolate;
}

.uk-section-primary.uk-position-relative.uk-section-xlarge > video[uk-cover] {
  z-index: -2;
}

.uk-section-primary.uk-position-relative.uk-section-xlarge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(24, 24, 25, 0.55) 0%, rgba(24, 24, 25, 0.82) 70%),
    linear-gradient(180deg,
      rgba(24, 24, 25, 0.55) 0%,
      rgba(24, 24, 25, 0.35) 40%,
      rgba(24, 24, 25, 0.75) 100%
    );
  z-index: -1;
  pointer-events: none;
}

.uk-section-primary.uk-position-relative.uk-section-xlarge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(81, 205, 152, 0.18) 0%,
    transparent 55%
  );
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.uk-section-primary.uk-position-relative.uk-section-xlarge > .uk-container {
  position: relative;
  z-index: 1;
}

/* "Register your studio" — the final conversion CTA. Repurposed from
   uk-button-danger (the only large danger button on the site) into the
   primary brand-filled CTA: big, glowing mint gradient, arrow indicator. */
.uk-section-primary .uk-button-danger.uk-button-large,
.uk-button-danger.uk-button-large {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 60%, var(--brand-end) 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.0625rem 2.75rem;
  letter-spacing: 0;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 28px rgba(81, 205, 152, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.uk-section-primary .uk-button-danger.uk-button-large::after,
.uk-button-danger.uk-button-large::after {
  content: "→";
  display: inline-block;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.uk-section-primary .uk-button-danger.uk-button-large:hover,
.uk-section-primary .uk-button-danger.uk-button-large:focus,
.uk-button-danger.uk-button-large:hover,
.uk-button-danger.uk-button-large:focus {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 55%, var(--brand-end) 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 36px rgba(81, 205, 152, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.uk-section-primary .uk-button-danger.uk-button-large:hover::after,
.uk-button-danger.uk-button-large:hover::after {
  transform: translateX(4px);
}

.uk-button-text {
  color: var(--text-hi);
}

.uk-button-text:hover {
  color: var(--accent);
}

.uk-button-text::before {
  border-bottom-color: var(--accent);
}

/* Buttons on dark tiles/sections (already dark, just keep consistent) */
.uk-section-primary:not(.uk-preserve-color) .uk-button-primary,
.uk-tile-primary:not(.uk-preserve-color) .uk-button-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.uk-section-primary:not(.uk-preserve-color) .uk-button-default,
.uk-tile-primary:not(.uk-preserve-color) .uk-button-default {
  color: var(--text-hi);
  border-color: var(--border);
}

.uk-section-primary:not(.uk-preserve-color) .uk-button-default:hover,
.uk-tile-primary:not(.uk-preserve-color) .uk-button-default:hover {
  background-color: var(--bg-elevated);
  color: var(--text-bright);
  border-color: var(--border-hover);
}


/* --- Cards --------------------------------------------------------------- */

.uk-card {
  font-family: var(--font-body);
}

.uk-card-default {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.uk-card-default:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(81, 205, 152, 0.18);
  transform: translateY(-3px);
}

.uk-card-default .uk-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-bright);
}

.uk-card-default .uk-card-body {
  color: var(--text);
}

/* Undo the theme's uppercase+tracked uk-h4 so feature card titles read
   naturally. Scoped loosely since the only h4s on the site are card titles. */
h4,
.uk-h4 {
  text-transform: none !important;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
}

/* "Features you'll love" — general feature card polish (used for every
   card on the home page feature grids below the hero row) */
.el-item.uk-card-default.uk-card-body {
  padding: 1.75rem;
}

.el-item.uk-card-default .el-image,
.el-item.uk-card-default picture {
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease;
}

.el-item.uk-card-default:hover .el-image {
  transform: scale(1.02);
}

.el-item.uk-card-default .el-title.uk-h4 {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25;
  color: var(--text-bright) !important;
  margin-top: 1.25rem !important;
}

.el-item.uk-card-default .el-content,
.el-item.uk-card-default .el-content p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.5rem !important;
}

/* Polish for icon-on-top feature cards (Client App Setup style):
   - Subtle gradient surface so cards lift off the page bg
   - Brand-tinted icon "tile" so the icon reads as a key element, not
     a leftover IMG. Works whether UIKit's uk-svg has run or not.
   - Top hairline accent that fades in on hover. */
.el-item.uk-card-default.uk-card-body,
.el-item.uk-card-primary.uk-card-body,
.el-item.uk-card-secondary.uk-card-body {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(36, 36, 48, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.el-item.uk-card-default.uk-card-body::before,
.el-item.uk-card-primary.uk-card-body::before,
.el-item.uk-card-secondary.uk-card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81, 205, 152, 0.45) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.el-item.uk-card-default.uk-card-body:hover::before,
.el-item.uk-card-primary.uk-card-body:hover::before,
.el-item.uk-card-secondary.uk-card-body:hover::before {
  opacity: 1;
}

/* Icon "tile" — brand-soft rounded chip behind the SVG.
   uk-svg keeps the original <img> as a hidden sibling and inlines the
   SVG, so :first-child matches the hidden img and misses the visible
   svg. Target :not([hidden]) instead so both the raw-img fallback and
   the post-uk-svg inline svg get the tile treatment. */
.el-item.uk-card-default.uk-card-body > .el-image:not([hidden]),
.el-item.uk-card-primary.uk-card-body > .el-image:not([hidden]),
.el-item.uk-card-secondary.uk-card-body > .el-image:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 28px !important;
  height: 28px !important;
  padding: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.3);
  border-radius: 14px;
  margin-bottom: 0.5rem;
  overflow: visible;
}

/* Re-tint raw SVG icons (when uk-svg hasn't replaced them) to brand mint.
   Computed via the standard invert/sepia/saturate/hue-rotate combo.
   Only targets icons inside our card pattern, scoped to <img src>.svg. */
.el-item.uk-card-default.uk-card-body > img.el-image[src$=".svg"],
.el-item.uk-card-primary.uk-card-body > img.el-image[src$=".svg"],
.el-item.uk-card-secondary.uk-card-body > img.el-image[src$=".svg"] {
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(632%)
    hue-rotate(101deg)
    brightness(95%)
    contrast(86%);
}

/* When uk-svg HAS processed the icon, currentColor takes over — paint mint.
   High specificity to win against theme's .uk-text-primary {color:#fff} rule. */
.el-item.uk-card.uk-card-body > svg.el-image,
.el-item.uk-card.uk-card-body > svg.uk-text-primary,
.el-item.uk-card-default.uk-card-body > svg,
.el-item.uk-card-primary.uk-card-body > svg,
.el-item.uk-card-secondary.uk-card-body > svg {
  color: var(--brand) !important;
  fill: currentColor !important;
}

.el-item.uk-card.uk-card-body > svg path,
.el-item.uk-card.uk-card-body > svg g,
.el-item.uk-card.uk-card-body > svg circle,
.el-item.uk-card.uk-card-body > svg rect {
  fill: currentColor !important;
  stroke: currentColor;
}

/* Divider-list feature rows (e.g. platform "Admin on the run" list).
   Each row has a 60px raw icon + heading text. The source icons have
   mixed viewBoxes (16, 24, 48) so at a fixed pixel size they look
   wildly inconsistent. Normalize to a uniform mint tile chip. */
.uk-list.uk-list-divider .uk-width-auto > .el-image:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 24px !important;
  height: 24px !important;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.3);
  border-radius: 12px;
  color: var(--brand) !important;
  fill: currentColor !important;
  overflow: visible;
}

.uk-list.uk-list-divider .uk-width-auto > svg.el-image path,
.uk-list.uk-list-divider .uk-width-auto > svg.el-image g,
.uk-list.uk-list-divider .uk-width-auto > svg.el-image circle,
.uk-list.uk-list-divider .uk-width-auto > svg.el-image rect {
  fill: currentColor !important;
}

/* Raw-img fallback: tint to mint when uk-svg hasn't run. */
.uk-list.uk-list-divider .uk-width-auto > img.el-image[src$=".svg"]:not([hidden]) {
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(632%)
    hue-rotate(101deg)
    brightness(95%)
    contrast(86%);
}

/* Tighten title spacing under the new icon tile */
.el-item.uk-card-default.uk-card-body > .uk-card-title,
.el-item.uk-card-primary.uk-card-body > .uk-card-title,
.el-item.uk-card-secondary.uk-card-body > .uk-card-title {
  margin-top: 1rem !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--text-bright) !important;
}

/* Subtle brand-end gradient for large page titles across the site. Applied
   to all display-size headings (small/medium/large/xlarge) — these are
   explicitly hero/section titles, not body-copy h1/h2. */
.uk-heading-small,
.uk-heading-medium,
.uk-heading-large,
.uk-heading-xlarge,
.uk-heading-2xlarge {
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 55%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.03em;
}

/* --- Features hero row (top 3 highlight cards) ---------------------------
   A distinct, editorial treatment for the three "spotlight" features.
   Eyebrow + illustration in a tinted well + big title + punchy description.
   Each card picks up a different brand-palette accent via data-accent. */

.tm-features-hero .uk-grid {
  margin-left: -1rem;
}

.tm-features-hero .uk-grid > * {
  padding-left: 1rem;
}

.tm-feature-hero-card.uk-card-default {
  --accent-stop: var(--brand);
  --accent-soft-bg: rgba(81, 205, 152, 0.10);
  --accent-line: rgba(81, 205, 152, 0.35);
  padding: 0 !important;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.tm-feature-hero-card[data-accent="teal"] {
  --accent-stop: var(--brand-mid);
  --accent-soft-bg: rgba(62, 195, 200, 0.10);
  --accent-line: rgba(62, 195, 200, 0.35);
}

.tm-feature-hero-card[data-accent="blue"] {
  --accent-stop: var(--brand-end);
  --accent-soft-bg: rgba(58, 142, 239, 0.10);
  --accent-line: rgba(58, 142, 239, 0.35);
}

.tm-feature-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tm-feature-hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
              0 0 0 1px var(--accent-line);
}

.tm-feature-hero-card:hover::before {
  opacity: 1;
}

.tm-feature-hero-media {
  position: relative;
  padding: 2rem 2rem 1.25rem;
  background: linear-gradient(180deg, var(--accent-soft-bg) 0%, transparent 80%);
}

.tm-feature-hero-media picture,
.tm-feature-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
  transition: transform 0.4s ease;
}

.tm-feature-hero-card:hover .tm-feature-hero-media img {
  transform: scale(1.02);
}

.tm-feature-hero-eyebrow {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-stop);
  background: rgba(24, 24, 25, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}

.tm-feature-hero-title.uk-h4 {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: var(--text-bright) !important;
  margin: 0 !important;
  padding: 0 2rem;
}

.tm-feature-hero-desc {
  padding: 0.625rem 2rem 2rem;
  flex: 1;
}

.tm-feature-hero-desc p {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 640px) {
  .tm-feature-hero-media {
    padding: 1.5rem 1.5rem 1rem;
  }
  .tm-feature-hero-title.uk-h4,
  .tm-feature-hero-desc {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.uk-card-primary {
  background-color: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.uk-card-secondary {
  background-color: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.uk-card-primary.uk-card-hover:hover,
.uk-card-secondary.uk-card-hover:hover,
.uk-card-default.uk-card-hover:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(81, 205, 152, 0.18);
  transform: translateY(-3px);
}

.uk-card-primary .uk-card-title,
.uk-card-secondary .uk-card-title {
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ============================================================
   Footer (above the badges row)
   ============================================================ */

/* Logo block — keep small and crisp, with a soft mint glow underneath */
footer .uk-section-primary .uk-margin-small.uk-text-center img.el-image[src*="CLOVO-logo"] {
  width: 88px !important;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(81, 205, 152, 0.18));
}

/* Column section headings (Platform / Company / Support / Information).
   Exclude .uk-text-meta panels so the bottom-row legal/acknowledgement
   blocks (which also use uk-panel.uk-margin) keep their emphasis styling
   instead of being repainted mint-brand. */
footer .uk-section-primary .uk-panel.uk-margin:not(.uk-text-meta) > p {
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--brand) !important;
  margin: 0 0 0.5rem !important;
}

/* ============================================================
   Footer newsletter signup (MailerLite form)
   ============================================================
   The WP export ships an inline <style id="wp-custom-css"> block
   hardcoded to pre-rebrand blue (#3080ff), Helvetica stack, grey
   labels, etc. We strip that at generate-time and take over
   styling here, using design tokens to match the rest of the
   footer. Structure/class names are preserved because the form's
   inline submit-handler JS depends on them. */

#mailerlite-form_1,
#mailerlite-form_1 * {
  box-sizing: border-box;
}

#mailerlite-form_1 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: none;
}

#mailerlite-form_1 .mailerlite-form {
  margin: 0;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px rgba(81, 205, 152, 0.04);
}

/* Title — repurposed as a small eyebrow + leading line */
#mailerlite-form_1 .mailerlite-form-title {
  margin: 0 0 0.5rem;
}

#mailerlite-form_1 .mailerlite-form-title h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-bright);
  margin: 0;
  text-transform: none;
}

#mailerlite-form_1 .mailerlite-form-description {
  margin: 0 0 1rem;
}

#mailerlite-form_1 .mailerlite-form-description p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text) !important;
}

#mailerlite-form_1 .mailerlite-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#mailerlite-form_1 .mailerlite-form-field {
  margin: 0;
}

/* Visually hide the "Email" label — the placeholder is enough for
   a footer signup row, and a loose label looked like label soup
   in the narrow column. Keep it for screen readers. */
#mailerlite-form_1 .mailerlite-form-field label {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#mailerlite-form_1 .mailerlite-form-field input[type="email"] {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#mailerlite-form_1 .mailerlite-form-field input[type="email"]::placeholder {
  color: var(--text-dim);
}

#mailerlite-form_1 .mailerlite-form-field input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(81, 205, 152, 0.18);
}

#mailerlite-form_1 .mailerlite-subscribe-button-container {
  width: 100%;
  margin: 0;
}

#mailerlite-form_1 .mailerlite-subscribe-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}

#mailerlite-form_1 .mailerlite-subscribe-submit:hover,
#mailerlite-form_1 .mailerlite-subscribe-submit:focus-visible {
  background: var(--brand-hover);
  color: var(--bg);
  outline: none;
}

#mailerlite-form_1 .mailerlite-subscribe-submit:active {
  transform: scale(0.995);
}

#mailerlite-form_1 .mailerlite-subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Validation error chip injected by the form JS next to the input */
#mailerlite-form_1 .mailerlite-form-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--red);
}

#mailerlite-form_1 .mailerlite-form-loader,
#mailerlite-form_1 .mailerlite-form-response {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-hi);
}

#mailerlite-form_1 .mailerlite-form-response h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
}

/* The response p-span has an inline style="color: #339966" from the
   WP export; re-tint to text-hi so it reads on the dark surface. */
#mailerlite-form_1 .mailerlite-form-response p span[style*="color"] {
  color: var(--text-hi) !important;
}

/* Footer nav links — quieter, more clickable hover */
footer .uk-section-primary .uk-nav-default > li > a.el-link {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  padding: 0.3125rem 0 !important;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .uk-section-primary .uk-nav-default > li > a.el-link:hover {
  color: var(--text-bright) !important;
  transform: translateX(2px);
}

/* (Legacy footer .mailerlite-* and .ml-form-embedContainer blocks
   removed — the #mailerlite-form_1 rules earlier in this file are
   now the sole source of truth. The ml-form-embedContainer variants
   were unused in any generated HTML and the footer .mailerlite-*
   variants used !important with older sizing/radius that overrode
   the new pill + card design and read as "horrible" in the footer.) */


/* ============================================================
   Home integrations headline — plug-it-in gimmick
   ============================================================ */
.tm-plug-slot {
  position: relative;
  display: inline-block;
  padding: 0 0.35em 0 2em;
  color: var(--brand);
  white-space: nowrap;
}

/* The word "in" is what the plug "connects" to */
.tm-plug-slot .tm-plug-word {
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: var(--brand);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Plug icon — slides in from the left on reveal */
.tm-plug-slot .tm-plug-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-220%, -50%);
  display: inline-flex;
  align-items: center;
  width: 1.75em;
  height: 1.2em;
  color: var(--brand);
  z-index: 3;
  pointer-events: none;
}

.tm-plug-slot .tm-plug-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Trailing cord behind the plug — drawn-in when the plug arrives */
.tm-plug-slot .tm-plug-cord {
  position: absolute;
  left: 0.4em;
  top: 50%;
  height: 2px;
  width: 0;
  transform: translate(-100%, -50%);
  background: linear-gradient(90deg, transparent, rgba(81, 205, 152, 0.55) 30%, var(--brand) 100%);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

/* Sparks — hidden until plug connects, then burst outward briefly */
.tm-plug-slot .tm-plug-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.tm-plug-slot .tm-plug-sparks > span {
  position: absolute;
  left: 2em;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand);
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* ---- Animations fire when .is-plugging class is added by JS ---- */

.tm-plug-slot.is-plugging .tm-plug-icon {
  animation: tm-plug-slide 1.1s cubic-bezier(0.22, 1.1, 0.36, 1.1) forwards;
}

.tm-plug-slot.is-plugging .tm-plug-cord {
  animation: tm-plug-cord-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tm-plug-slot.is-plugging .tm-plug-word {
  animation: tm-plug-word-zap 0.55s ease-out 0.95s;
}

.tm-plug-slot.is-plugging .tm-plug-sparks > span {
  animation: tm-plug-spark 0.6s ease-out 0.95s forwards;
}

/* Six sparks — radiate in different directions at slightly different speeds */
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(1) { --sx:  1.6em; --sy: -0.9em; animation-delay: 0.95s; }
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(2) { --sx:  1.9em; --sy:  0em;   animation-delay: 1.00s; }
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(3) { --sx:  1.6em; --sy:  0.9em; animation-delay: 1.02s; }
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(4) { --sx: -0.9em; --sy: -1em;   animation-delay: 0.98s; }
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(5) { --sx: -0.6em; --sy:  1em;   animation-delay: 1.04s; }
.tm-plug-slot.is-plugging .tm-plug-sparks > span:nth-child(6) { --sx:  0em;   --sy: -1.3em; animation-delay: 1.06s; }

@keyframes tm-plug-slide {
  0%   { transform: translate(-260%, -50%); opacity: 0; }
  12%  { opacity: 1; }
  78%  { transform: translate(-22%, -50%);  opacity: 1; }
  86%  { transform: translate( 6%, -50%);   opacity: 1; }  /* bounce past */
  94%  { transform: translate(-4%, -50%);   opacity: 1; }  /* settle back */
  100% { transform: translate( 0%, -50%);   opacity: 1; }
}

@keyframes tm-plug-cord-grow {
  0%   { width: 0; }
  78%  { width: calc(1.5em + 220%); }  /* trails behind plug at contact point */
  100% { width: 1.4em; }               /* short resting tail behind plug */
}

@keyframes tm-plug-word-zap {
  0%, 100% { color: var(--brand); text-shadow: none; }
  30%      { color: var(--text-bright); text-shadow: 0 0 16px var(--brand), 0 0 28px rgba(81, 205, 152, 0.6); }
}

@keyframes tm-plug-spark {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.6); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tm-plug-slot .tm-plug-icon,
  .tm-plug-slot .tm-plug-cord,
  .tm-plug-slot .tm-plug-word,
  .tm-plug-slot .tm-plug-sparks > span {
    animation: none !important;
  }
  .tm-plug-slot .tm-plug-icon {
    transform: translate(-10%, -50%) !important;
    opacity: 1;
  }
  .tm-plug-slot .tm-plug-cord {
    width: 1.4em;
  }
}

/* Inline accent text used inside headings (e.g. Company hero "mission" /
   "the best" / "studio" spans). Picks up the brand-gradient clip. */
.tm-accent-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Company hero illustration — pilates illustration on transparent surface
   with the same blue/mint radial glow as the home pricing artwork. */
.tm-mission-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.tm-mission-art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle at center,
    rgba(58, 142, 239, 0.18) 0%,
    rgba(81, 205, 152, 0.08) 40%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.tm-mission-art img {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: none;
  border-radius: 0;
}

/* Platform index — slider of icon feature links. Upgrade the plain
   icon-above-label anchors into proper chip-tile cards with a subtle
   brand-tinted hover. */
.uk-slider-container .el-item {
  padding: 0 0.5rem;
}

.uk-slider-container .el-item > a.uk-panel {
  padding: 2rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.uk-slider-container .el-item > a.uk-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(81, 205, 152, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(81, 205, 152, 0.2);
}

.uk-slider-container .el-item .el-image {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 auto !important;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.uk-slider-container .el-item > a.uk-panel:hover .el-image {
  background: rgba(81, 205, 152, 0.08);
  border-color: rgba(81, 205, 152, 0.4);
}

.uk-slider-container .el-item .el-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-bright);
  text-align: center;
  margin-top: 1rem !important;
}


/* --- Icon Buttons -------------------------------------------------------- */

.uk-icon-button {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.uk-icon-button:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
  border-color: var(--border-hover);
}

/* SVG icons in the UI */
.uk-icon svg {
  color: inherit;
}


/* --- Forms --------------------------------------------------------------- */

.uk-input,
.uk-select,
.uk-textarea {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  background-color: var(--bg-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background-color: var(--bg-surface);
  color: var(--text-bright);
}

.uk-input::placeholder,
.uk-textarea::placeholder {
  color: var(--text-dim);
}

.uk-form-label {
  font-family: var(--font-body);
  color: var(--text-hi);
  font-weight: 500;
}


/* --- Modals & Offcanvas -------------------------------------------------- */

.uk-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  color: var(--text);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
}

.uk-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
}

.uk-modal-close-default {
  color: var(--text-dim);
}

.uk-modal-close-default:hover {
  color: var(--text-hi);
}

.uk-offcanvas-bar {
  background: var(--bg-surface);
  font-family: var(--font-body);
  color: var(--text);
}

/* Mobile menu */
#tm-dialog-mobile {
  font-family: var(--font-body);
}

#tm-dialog-mobile .uk-modal-dialog {
  background: var(--bg-surface);
}

#tm-dialog-mobile .uk-nav > li > a {
  font-family: var(--font-body);
  color: var(--text-hi);
}

#tm-dialog-mobile .uk-nav > li > a:hover {
  color: var(--accent);
}


/* --- Dividers ------------------------------------------------------------ */

hr, .uk-hr,
.uk-divider-icon,
.uk-divider-small {
  border-top-color: var(--border);
}

.uk-grid-divider > :not(.uk-first-column)::before {
  border-left-color: var(--border);
}


/* --- Tables -------------------------------------------------------------- */

.uk-table th {
  font-family: var(--font-body);
  color: var(--text-hi);
  font-weight: 600;
  border-bottom-color: var(--border);
}

.uk-table td {
  font-family: var(--font-body);
  color: var(--text);
  border-bottom-color: var(--border);
}

.uk-table-striped > tr:nth-of-type(odd),
.uk-table-striped > :not(:first-child) > tr:nth-of-type(odd) {
  background: var(--bg-surface);
}

.uk-table-hover > tr:hover,
.uk-table-hover > :not(:first-child) > tr:hover {
  background: var(--bg-elevated);
}


/* --- Accordions ---------------------------------------------------------- */

.uk-accordion-title {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 600;
}

.uk-accordion-title:hover {
  color: var(--text-bright);
}

.uk-accordion-content {
  font-family: var(--font-body);
  color: var(--text);
}


/* --- Notifications ------------------------------------------------------- */

.uk-notification-message {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
}


/* --- Nav (footer, sidebar) ----------------------------------------------- */

.uk-nav-secondary > li > a {
  color: var(--text);
  font-family: var(--font-body);
}

.uk-nav-secondary > li > a:hover {
  color: var(--text-bright);
}

.uk-nav-secondary .uk-nav-subtitle {
  color: var(--text-dim);
  font-family: var(--font-body);
}

.uk-nav-default > li > a {
  color: var(--text);
}

.uk-nav-default > li > a:hover,
.uk-nav-default > li.uk-active > a {
  color: var(--text-bright);
}


/* --- Breadcrumbs & Pagination -------------------------------------------- */

.uk-breadcrumb > * > a {
  color: var(--text-dim);
}

.uk-breadcrumb > * > a:hover {
  color: var(--text-hi);
}

.uk-pagination > li > a {
  color: var(--text);
}

.uk-pagination > li > a:hover {
  color: var(--text-bright);
}

.uk-pagination > .uk-active > a {
  color: var(--accent);
}


/* --- Subnav -------------------------------------------------------------- */

.uk-subnav > li > a {
  color: var(--text-dim);
  font-family: var(--font-body);
}

.uk-subnav > li > a:hover {
  color: var(--text-hi);
}

.uk-subnav > li.uk-active > a {
  color: var(--text-bright);
}

/* Feature-tab variant: pill-style with brand mint active state */
.uk-subnav-pill {
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 0 !important;
}

.uk-subnav-pill > * {
  padding-left: 0 !important;
}

.uk-subnav-pill > * > a,
.uk-subnav-pill > * > :first-child:not(ul):not(div) {
  padding: 0.625rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text) !important;
  background: transparent !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.uk-subnav-pill > * > a:hover,
.uk-subnav-pill > * > :first-child:not(ul):not(div):hover {
  color: var(--text-bright) !important;
  background: var(--bg-surface) !important;
  border-color: var(--border-hover);
}

.uk-subnav-pill > .uk-active > a,
.uk-subnav-pill > .uk-active > :first-child:not(ul):not(div) {
  color: var(--text-bright) !important;
  background: rgba(81, 205, 152, 0.06) !important;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 4px 20px rgba(81, 205, 152, 0.12);
}


/* --- Images on dark backgrounds ------------------------------------------ */

.uk-border-rounded {
  border-radius: var(--radius-lg);
}

/* Give illustrations a subtle surface background so they don't float */
.el-image {
  border-radius: var(--radius-lg);
}


/* --- Box Shadows --------------------------------------------------------- */

.uk-box-shadow-small {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.uk-box-shadow-medium {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.uk-box-shadow-large {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}


/* --- Tooltip ------------------------------------------------------------- */

.uk-tooltip {
  background: var(--bg-elevated);
  color: var(--text-hi);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
}


/* --- Misc ---------------------------------------------------------------- */

.uk-totop {
  color: var(--text-dim);
}

.uk-totop:hover {
  color: var(--accent);
}

.uk-label {
  background: var(--accent);
  font-family: var(--font-body);
  border-radius: 4px;
  font-weight: 500;
}

/* Star ratings area (if any icons use fill) */
.uk-icon {
  color: inherit;
}

/* Overlay backgrounds */
.uk-overlay-default {
  background: rgba(24, 24, 25, 0.7);
}

.uk-overlay-primary {
  background: rgba(24, 24, 25, 0.85);
}

/* Lightbox */
.uk-lightbox {
  background: rgba(0, 0, 0, 0.9);
}

/* Search */
.uk-search-input {
  font-family: var(--font-body);
  color: var(--text-hi);
}

/* Drop / Dropdown */
.uk-drop {
  background: var(--bg-surface);
}

.uk-dropdown {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Alert */
.uk-alert {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Progress */
.uk-progress {
  background: var(--bg-elevated);
}

.uk-progress::-webkit-progress-value {
  background: var(--accent);
}

/* Scrollspy transitions */
[uk-scrollspy-class] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}


/* --- Invert the Clovo logo on dark ---------------------------------------- */

/* The logo is dark-colored — invert it for dark bg */
.uk-logo img {
  filter: invert(1) brightness(2);
}


/* --- Fix light background images/SVGs for dark theme --------------------- */

/* Darken decorative background images (SVG waves, shapes, etc.) */
.uk-background-cover,
[style*="background-image"] {
  position: relative;
}

/* Apply dark overlay to sections with light background images */
.uk-section[style*="background-image"]::before,
div[style*="background-image"]:not(.uk-logo):not(.el-image)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.uk-section[style*="background-image"] > *,
div[style*="background-image"]:not(.uk-logo):not(.el-image) > * {
  position: relative;
  z-index: 1;
}

/* SVG background images — invert their colors for dark theme */
img[src$=".svg"]:not(.uk-logo img) {
  filter: invert(0.85) hue-rotate(180deg);
}

/* Images with white backgrounds — soften for dark theme */
.uk-panel .el-image,
.uk-card .el-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Integration/partner logo images with baked-in white bgs */
.uk-grid-match .uk-panel .el-image {
  border-radius: var(--radius-lg);
  filter: brightness(0.9);
}

/* Background SVG/PNG decorative elements */
.uk-section-default .uk-background-contain,
.uk-section-muted .uk-background-contain {
  opacity: 0.15;
}

/* Ensure background-cover images with overlaid text are readable */
.uk-background-cover {
  border-radius: var(--radius-lg);
}


/* --- Made for Australia section ------------------------------------------ */

.tm-au-section {
  position: relative;
  overflow: hidden;
}

.tm-au-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(58, 142, 239, 0.08) 0%,
    rgba(81, 205, 152, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.tm-au-section > .uk-container {
  position: relative;
  z-index: 1;
}

.tm-au-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

.tm-au-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 1.25rem;
}

.tm-au-cross {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.tm-au-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 60%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tm-au-sub {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0;
}

.tm-au-sub p {
  margin: 0;
  color: var(--text);
}

.tm-au-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .tm-au-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tm-au-grid {
    grid-template-columns: 1fr;
  }
}

.tm-au-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.tm-au-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.tm-au-card-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tm-au-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.tm-au-card-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}


/* --- Start with the Clovo app section ----------------------------------- */

.tm-app-section {
  position: relative;
  overflow: hidden;
}

.tm-app-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle at center,
    rgba(81, 205, 152, 0.10) 0%,
    rgba(58, 142, 239, 0.06) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.tm-app-section > .uk-container {
  position: relative;
  z-index: 1;
}

.tm-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

@media (max-width: 960px) {
  .tm-app-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

/* Copy side */
.tm-app-copy {
  max-width: 520px;
}

@media (max-width: 960px) {
  .tm-app-copy {
    max-width: none;
    text-align: center;
    margin: 0 auto;
    order: 2;
  }
}

.tm-app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 1.25rem;
}

.tm-app-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 205, 152, 0.2);
  animation: tm-app-pulse 2.2s ease-in-out infinite;
}

@keyframes tm-app-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(81, 205, 152, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(81, 205, 152, 0.08); }
}

.tm-app-title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.03em;
}

.tm-app-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-hi);
  margin: 0 0 1rem;
}

.tm-app-sub p {
  margin: 0;
  color: var(--text-hi);
}

.tm-app-note {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0 0 2rem;
}

.tm-app-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .tm-app-cta {
    justify-content: center;
  }
}

.tm-app-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .tm-app-badges {
    justify-content: center;
  }
}

.tm-app-badges a {
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.tm-app-badges a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.tm-app-badges img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 8px;
}

/* Device side */
.tm-app-devices {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .tm-app-devices {
    height: 540px;
    order: 1;
  }
}

@media (max-width: 640px) {
  .tm-app-devices {
    height: 460px;
  }
}

.tm-app-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at center, rgba(81, 205, 152, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(58, 142, 239, 0.28) 0%, transparent 50%);
  filter: blur(40px);
  z-index: 0;
  animation: tm-app-glow-drift 12s ease-in-out infinite;
}

@keyframes tm-app-glow-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.tm-app-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 18px 36px -12px rgba(81, 205, 152, 0.25);
  transition: transform 0.4s ease;
}

.tm-app-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.tm-app-phone-front {
  width: 260px;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 3;
}

.tm-app-phone-back {
  width: 230px;
  transform: translate(-90%, -55%) rotate(-10deg);
  opacity: 0.9;
  z-index: 1;
}

.tm-app-phone-side {
  width: 230px;
  transform: translate(-10%, -45%) rotate(8deg);
  opacity: 0.9;
  z-index: 2;
}

.tm-app-devices:hover .tm-app-phone-front {
  transform: translate(-50%, -52%) rotate(-2deg);
}

@media (max-width: 640px) {
  .tm-app-phone-front { width: 210px; }
  .tm-app-phone-back  { width: 185px; }
  .tm-app-phone-side  { width: 185px; }
}

/* Outro line */
.tm-app-outro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.tm-app-outro p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-hi);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}


/* --- Disciplines section (Yoga, Exercise Professionals, Group) ---------- */

.tm-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .tm-disciplines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tm-disciplines-grid > :nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .tm-disciplines-grid {
    grid-template-columns: 1fr;
  }
  .tm-disciplines-grid > :nth-child(3) {
    max-width: none;
  }
}

.tm-discipline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  text-align: left;
}

.tm-discipline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-3px);
}

.tm-discipline-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.tm-discipline-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 24, 25, 0) 55%, rgba(24, 24, 25, 0.6) 100%);
  pointer-events: none;
}

.tm-discipline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Override global SVG-targeted filter just in case */
  filter: none;
  transition: transform 0.6s ease;
  border-radius: 0;
}

.tm-discipline-card:hover .tm-discipline-media img {
  transform: scale(1.04);
}

.tm-discipline-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.tm-discipline-meta {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 0.25rem;
}

.tm-discipline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0;
}

.tm-discipline-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.tm-discipline-tags {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tm-discipline-tags li {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-hi);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}


/* --- Hero tidy-ups ------------------------------------------------------- */

/* Subcopy ("Clovo is paid for...") — was a malformed empty <h1> + <p> that
   rendered left-aligned. Now a proper centered block with more visual weight. */
.tm-hero-subcopy {
  color: var(--text-bright);
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.tm-hero-subcopy p {
  margin: 0;
  color: var(--text-bright);
}

.tm-hero-subcopy strong {
  font-weight: 600;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* "No credit card required, ever" — replaces a dark-on-dark PNG.
   Styled as a subtle reassurance pill with a checkmark for presence. */
.tm-hero-nocc {
  margin-top: 1.25rem !important;
}

.tm-hero-nocc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-hi);
}

.tm-hero-nocc-check {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}


/* --- Pricing section — conversational, approachable, modern ------------ */

.tm-pricing-section {
  position: relative;
}

.tm-pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .tm-pricing-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.tm-pricing-copy {
  max-width: 620px;
}

@media (max-width: 900px) {
  .tm-pricing-copy {
    order: 2;
  }
}

.tm-pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0 0 1rem;
}

.tm-pricing-headline strong {
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.tm-pricing-cap {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-hi);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.tm-pricing-cap strong {
  color: var(--text-bright);
  font-weight: 700;
}

.tm-pricing-section .tm-pricing-desc,
p.tm-pricing-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #a8b0c4;
  margin: 0;
}

.tm-pricing-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

@media (max-width: 900px) {
  .tm-pricing-art {
    order: 1;
    min-height: 200px;
  }
}

.tm-pricing-art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(58, 142, 239, 0.18) 0%,
    rgba(81, 205, 152, 0.08) 40%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.tm-pricing-art img {
  position: relative;
  z-index: 1;
  max-width: 320px;
  width: 100%;
  height: auto;
  /* Override the global SVG/filter rules; this is a PNG decoration */
  filter: none;
  border-radius: 0;
}

/* Notes / accordion — lightweight native <details> styling */
.tm-pricing-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tm-pricing-note {
  border-bottom: 1px solid var(--border);
}

.tm-pricing-note summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.tm-pricing-note summary::-webkit-details-marker {
  display: none;
}

.tm-pricing-note summary:hover {
  color: var(--text-bright);
}

.tm-pricing-note[open] summary {
  color: var(--text-bright);
}

.tm-pricing-note-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tm-pricing-note-icon::before,
.tm-pricing-note-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tm-pricing-note-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.tm-pricing-note-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.tm-pricing-note[open] .tm-pricing-note-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.tm-pricing-note-body {
  padding: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #a8b0c4;
  max-width: 720px;
}

.tm-pricing-section .tm-pricing-note-body p {
  margin: 0 0 0.75rem;
  color: #a8b0c4;
}

.tm-pricing-note-body p:last-child {
  margin-bottom: 0;
}

.tm-pricing-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin-top: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.tm-pricing-cta-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle at center,
    rgba(62, 195, 200, 0.12) 0%,
    rgba(58, 142, 239, 0.06) 40%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.tm-pricing-section .tm-pricing-cta-copy,
p.tm-pricing-cta-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

/* The "Learn more about pricing" CTA — gradient border, same treatment as
   the hero Start Setup button. */
.tm-pricing-cta-btn.uk-button-secondary.uk-button-large {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 10px 28px;
}

@media (max-width: 640px) {
  .tm-pricing-cta-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .tm-pricing-cta-btn.uk-button-secondary.uk-button-large {
    width: 100%;
  }
}

/* Hero rating icons — colored SVGs replaced with gradient-masked spans.
   Each span becomes a flat shape filled with the pink→purple→blue gradient
   already used on the CTA. */
.tm-hero-rating-icon {
  display: inline-block;
  vertical-align: middle;
  background: var(--brand-gradient);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* Silhouette-only mask SVGs — the originals bundle a filled backplate that
   rendered as a solid gradient rectangle when used as a mask. These paths
   are the logo letterforms on their own. */
.tm-hero-rating-icon-capterra {
  width: 22px;
  height: 22px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='4.978 2.022 320.044 325.956'><path fill='black' d='M4.978 121.868l135.18.027 82.2.014V40.475z'/><path fill='black' d='M222.357 40.475v287.503L325.022 2.022z'/><path fill='black' d='M222.357 121.909l-82.199-.014 82.2 206.083z'/><path fill='black' d='M4.978 121.868l156.26 52.905-21.08-52.878-135.18-.027z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='4.978 2.022 320.044 325.956'><path fill='black' d='M4.978 121.868l135.18.027 82.2.014V40.475z'/><path fill='black' d='M222.357 40.475v287.503L325.022 2.022z'/><path fill='black' d='M222.357 121.909l-82.199-.014 82.2 206.083z'/><path fill='black' d='M4.978 121.868l156.26 52.905-21.08-52.878-135.18-.027z'/></svg>");
}

.tm-hero-rating-icon-apple {
  width: 22px;
  height: 26px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>");
}

.tm-hero-rating-icon-google {
  width: 22px;
  height: 24px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M325.3 234.3 104.6 13l280.8 161.2-60.1 60.1zM47 0C33.6 6.4 24.6 19.2 24.6 35.8v440.4c0 16.6 9 29.4 22.4 35.8l256.5-256L47 0zm425.2 225.6-58.9-34.1-65.7 64 65.7 64 60.1-34.1c18-14.3 18-46.5-1.2-59.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='black' d='M325.3 234.3 104.6 13l280.8 161.2-60.1 60.1zM47 0C33.6 6.4 24.6 19.2 24.6 35.8v440.4c0 16.6 9 29.4 22.4 35.8l256.5-256L47 0zm425.2 225.6-58.9-34.1-65.7 64 65.7 64 60.1-34.1c18-14.3 18-46.5-1.2-59.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z'/></svg>");
}

/* ============================================================
   Support page
   ============================================================ */

/* Knowledge base section — full-width header + article grid */
.tm-kb-header {
  max-width: 720px;
  margin: 0 0 2.5rem;
}

.tm-kb-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.875rem;
}

.tm-kb-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-bright);
  margin: 0 0 0.875rem;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 55%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tm-kb-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.tm-kb-lead a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(81, 205, 152, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tm-kb-lead a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.tm-kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tm-kb-grid > .tm-kb-card:nth-child(4),
.tm-kb-grid > .tm-kb-card:nth-child(5) {
  grid-column: span 1;
}

@media (max-width: 960px) {
  .tm-kb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tm-kb-grid {
    grid-template-columns: 1fr;
  }
}

.tm-kb-card {
  --accent-stop: var(--brand);
  --accent-soft: rgba(81, 205, 152, 0.12);
  --accent-line: rgba(81, 205, 152, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.625rem 1.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.tm-kb-card[data-accent="teal"] {
  --accent-stop: var(--brand-mid);
  --accent-soft: rgba(62, 195, 200, 0.12);
  --accent-line: rgba(62, 195, 200, 0.35);
}

.tm-kb-card[data-accent="blue"] {
  --accent-stop: var(--brand-end);
  --accent-soft: rgba(58, 142, 239, 0.12);
  --accent-line: rgba(58, 142, 239, 0.35);
}

.tm-kb-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tm-kb-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32),
              0 0 0 1px var(--accent-line);
}

.tm-kb-card:hover::before {
  opacity: 1;
}

.tm-kb-card-category {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3125rem 0.625rem;
  margin-bottom: 1.125rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-stop);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}

.tm-kb-card-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-bright);
  margin: 0 0 0.625rem;
  text-transform: none;
}

.tm-kb-card-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.25rem;
  flex: 1;
}

.tm-kb-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-stop);
  transition: gap 0.2s ease;
}

.tm-kb-card:hover .tm-kb-card-cta {
  gap: 0.5625rem;
}

/* Popular Questions — fix illegible dark-gradient-clip text */
#tm-main .uk-list .el-title .uk-text-background,
#tm-main .el-item .el-title .uk-text-background {
  background: none !important;
  -webkit-background-clip: unset !important;
          background-clip: unset !important;
  -webkit-text-fill-color: var(--text-bright) !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

#tm-main .uk-list .el-title.uk-h6 {
  font-family: var(--font-display) !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
}

#tm-main .uk-list.uk-list-large .el-item {
  padding: 1.125rem 0;
}

#tm-main .uk-list.uk-list-large .el-content p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.625rem;
}

#tm-main .uk-list.uk-list-large .el-content p:last-child {
  margin-bottom: 0;
}

/* Category headings (The Basics, Memberships, …) in popular questions */
#tm-main h2.uk-h5 {
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--brand) !important;
}

/* Bottom support CTA — callout card pattern */
.tm-support-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.tm-support-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(81, 205, 152, 0.14) 0%,
    rgba(62, 195, 200, 0.08) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.tm-support-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.tm-support-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.tm-support-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.875rem;
}

.tm-support-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}

.tm-support-cta-copy {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.75rem;
}

.tm-support-cta-btn.uk-button-danger.uk-button-large {
  min-width: 240px;
}

/* ============================================================
   Pricing page
   ============================================================ */

/* Mint glow behind the pilates/yoga lifestyle images */
.tm-pricing-img-glow {
  position: relative;
  isolation: isolate;
}

.tm-pricing-img-glow::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(81, 205, 152, 0.28) 0%,
    rgba(62, 195, 200, 0.18) 35%,
    rgba(58, 142, 239, 0.10) 55%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
}

.tm-pricing-img-glow .el-image {
  position: relative;
}

/* Pricing benefits — pill chip row replacing the heart-icon list */
.tm-pricing-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0.75rem;
  max-width: 920px;
  margin: 1.25rem auto 0;
}

.tm-pricing-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem 0.75rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-hi);
  transition: border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.tm-pricing-benefit:hover {
  border-color: rgba(81, 205, 152, 0.35);
  background: var(--bg-elevated);
}

.tm-pricing-benefit-tick {
  display: inline-flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.35);
  color: var(--brand);
}

/* FAQ list ticks — same branded treatment as the benefit chips, sized
   for the "You don't pay a cent..." bullet list */
.tm-faq-tick {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.35);
  color: var(--brand);
}

.tm-faq-tick svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Plan section — Standard is the hero, Franchise is a quiet footnote */
.tm-plan-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

/* The big Standard card */
.tm-plan-hero {
  position: relative;
  padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem) 2.5rem;
  background: linear-gradient(160deg,
    rgba(81, 205, 152, 0.06) 0%,
    var(--bg-surface) 35%,
    var(--bg-surface) 100%);
  border: 1px solid rgba(81, 205, 152, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(81, 205, 152, 0.08);
}

.tm-plan-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--brand) 30%,
    var(--brand-mid) 50%,
    var(--brand-end) 70%,
    transparent);
  opacity: 0.7;
}

.tm-plan-hero-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.tm-plan-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.875rem;
}

.tm-plan-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.625rem, 3vw, 2.125rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  margin: 0 0 0.875rem !important;
}

.tm-plan-hero-tagline {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-hi);
  margin: 0 auto;
  max-width: 640px;
}

/* Two-column responsive feature grid (becomes 1-col on mobile) */
.tm-plan-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.tm-plan-group {
  display: flex;
  flex-direction: column;
}

.tm-plan-group-title {
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--brand) !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.tm-plan-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tm-plan-group-list li {
  position: relative;
  padding-left: 1.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-hi);
}

.tm-plan-group-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.4);
}

.tm-plan-group-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5625rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Franchise — quiet, single-line footnote sitting under Standard.
   Subtle border, muted copy, low-emphasis link. */
.tm-franchise-note {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(36, 36, 48, 0.35);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.tm-franchise-note-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.tm-franchise-note-copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}

.tm-franchise-note-copy strong {
  color: var(--text-hi);
  font-weight: 600;
}

.tm-franchise-note-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-hi) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, gap 0.2s ease;
}

.tm-franchise-note-link:hover {
  color: var(--brand) !important;
  gap: 0.45rem;
}

@media (max-width: 760px) {
  .tm-plan-hero {
    padding: 1.75rem 1.25rem 2rem;
  }
  .tm-plan-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tm-franchise-note {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.5rem;
  }
}

/* Plan comparison — branded inline checkmark replacing the old tick PNG */
.tm-plan-included {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(81, 205, 152, 0.35);
  color: var(--brand);
  flex-shrink: 0;
}

.tm-plan-included::before {
  content: "";
  width: 0.5rem;
  height: 0.3125rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Plan comparison table — tighten up and re-theme the table that used to
   rely on dark header cells + PNG ticks. */
#tm-main .uk-table.uk-table-striped {
  color: var(--text);
}

#tm-main .uk-table.uk-table-striped thead th {
  font-family: var(--font-display) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: var(--text-bright) !important;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: transparent !important;
}

#tm-main .uk-table.uk-table-striped tbody td {
  color: var(--text);
  font-size: 0.9375rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(41, 42, 53, 0.5);
  vertical-align: middle;
}

#tm-main .uk-table.uk-table-striped tbody tr:nth-of-type(odd) {
  background: rgba(36, 36, 48, 0.4);
}

#tm-main .uk-table.uk-table-striped tbody tr:hover {
  background: var(--bg-elevated);
}

#tm-main .uk-table.uk-table-striped tbody td:first-child {
  font-weight: 600;
  color: var(--text-hi);
}

#tm-main .uk-table.uk-table-striped tbody td span[style*="font-size:12px"] {
  color: var(--text-dim) !important;
  font-weight: 400;
}

/* Add breathing room between the cap text and the Stripe pill below it */
.uk-h1.uk-text-center + .uk-panel.uk-margin {
  margin-top: 2rem !important;
}

/* Stripe fees note — bordered pill under the hero with logo + external link */
.tm-stripe-note {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem 0.625rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tm-stripe-note:hover {
  border-color: var(--border-hover);
}

.tm-stripe-note-logo {
  display: inline-flex;
  align-items: center;
  color: #635bff;
  flex-shrink: 0;
}

.tm-stripe-note-logo svg {
  width: 48px;
  height: auto;
  display: block;
}

.tm-stripe-note-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
}

.tm-stripe-note-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-left: 0.875rem;
  margin-left: 0.125rem;
  border-left: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, gap 0.2s ease;
}

.tm-stripe-note-link:hover {
  color: var(--accent-hover) !important;
  gap: 0.4375rem;
}

@media (max-width: 640px) {
  .tm-stripe-note {
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
  }
  .tm-stripe-note-text {
    white-space: normal;
    text-align: center;
  }
  .tm-stripe-note-link {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 0.625rem 0 0;
    margin-left: 0;
  }
}

/* ============================================================
   Platform page — custom coverflow carousel
   ============================================================ */

.tm-carousel {
  --slide-width: 260px;
  --slide-step: 220px;
  --center-scale: 1;
  --adj-scale: 0.78;
  --far-scale: 0.6;
  position: relative;
  width: 100%;
  margin: 3rem auto 2rem;
  overflow: hidden;
}

.tm-carousel-viewport {
  position: relative;
  width: 100%;
  height: 380px;
}

.tm-carousel-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.tm-carousel-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--slide-width);
  /* Combined transform: center-at-origin, then slide to slot, then scale */
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--d, 0) * var(--slide-step)))
    scale(var(--slide-scale, 1));
  transition:
    transform 0.65s cubic-bezier(0.25, 0.85, 0.3, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
  will-change: transform, opacity;
  --slide-scale: var(--center-scale);
}

.tm-carousel-slide.is-adjacent {
  --slide-scale: var(--adj-scale);
  opacity: 0.7;
}

.tm-carousel-slide.is-far {
  --slide-scale: var(--far-scale);
  opacity: 0.35;
  filter: blur(0.5px);
}

.tm-carousel-slide.is-hidden {
  --slide-scale: 0.45;
  opacity: 0;
  filter: blur(2px);
}

.tm-carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 240px;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit !important;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.tm-carousel-slide.is-center .tm-carousel-card {
  border-color: rgba(81, 205, 152, 0.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(81, 205, 152, 0.22);
}

.tm-carousel-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin-bottom: 0.5rem;
}

/* Layered glows behind the icon
   ::before = far gradient glow (colored, wide, slow spin + breath)
   ::after  = close white glow (bright rim that offsets the icon)      */
.tm-carousel-icon::before,
.tm-carousel-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.tm-carousel-icon::before {
  /* Far gradient glow — wide and soft, sits furthest back */
  inset: -22px;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    var(--brand) 0%,
    var(--brand-mid) 33%,
    var(--brand-end) 66%,
    var(--brand) 100%
  );
  filter: blur(28px);
}

.tm-carousel-icon::after {
  /* Close white glow — tight ring that reads as an edge-light on the
     icon, offsetting it from the colored gradient behind. Hollow center
     so it doesn't wash the icon out. */
  inset: -4px;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(255, 255, 255, 0.12) 65%,
    transparent 80%
  );
  filter: blur(8px);
}

.tm-carousel-slide.is-center .tm-carousel-icon::before {
  opacity: 0.85;
  animation:
    tm-carousel-glow-spin 14s linear infinite,
    tm-carousel-glow-breath 5.2s ease-in-out infinite;
}

.tm-carousel-slide.is-center .tm-carousel-icon::after {
  opacity: 1;
  animation: tm-carousel-white-breath 4.4s ease-in-out infinite;
  animation-delay: -1.2s; /* offset from gradient pulse for a living feel */
}

@keyframes tm-carousel-glow-spin {
  to { transform: rotate(360deg); }
}

@keyframes tm-carousel-glow-breath {
  0%, 100% { opacity: 0.7;  filter: blur(26px); }
  50%      { opacity: 1;    filter: blur(34px); }
}

@keyframes tm-carousel-white-breath {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.tm-carousel-icon .el-image {
  position: relative;
  z-index: 2;
  width: 64px !important;
  height: 64px !important;
  color: var(--text-hi);
  transition: color 0.5s ease, transform 0.5s ease;
}

.tm-carousel-slide.is-center .tm-carousel-icon .el-image {
  color: var(--text-bright);
  transform: scale(1.05);
}

/* Paint the active icon with a subtle white gradient so it reads as
   bright white but with a soft diagonal falloff that gives it depth
   against the glow. The defs live at the top of the carousel block
   (id: #tm-icon-white-gradient). */
.tm-carousel-slide.is-center .tm-carousel-icon .el-image,
.tm-carousel-slide.is-center .tm-carousel-icon .el-image * {
  fill: url(#tm-icon-white-gradient) !important;
  color: transparent;
}

.tm-carousel-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0.25rem 0 0;
  transition: color 0.4s ease;
}

.tm-carousel-slide.is-center .tm-carousel-title {
  color: var(--text-bright);
}

.tm-carousel-desc {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-hi);
  letter-spacing: -0.005em;
  transition:
    max-height 0.55s ease,
    opacity 0.45s ease 0.1s,
    margin 0.4s ease;
}

.tm-carousel-slide.is-center .tm-carousel-desc {
  max-height: 7rem;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Page indicator dots */
.tm-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0;
}

.tm-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: rgba(105, 112, 136, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.35s cubic-bezier(0.25, 0.85, 0.3, 1),
              transform 0.3s ease;
}

.tm-carousel-dot:hover {
  background: var(--text-dim);
  transform: scale(1.15);
}

.tm-carousel-dot.is-active {
  background: var(--brand);
  width: 28px;
  box-shadow: 0 0 12px rgba(81, 205, 152, 0.45);
}

.tm-carousel-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .tm-carousel {
    --slide-width: 220px;
    --slide-step: 170px;
    --adj-scale: 0.72;
    --far-scale: 0.5;
  }
  .tm-carousel-viewport {
    height: 340px;
  }
  .tm-carousel-card {
    padding: 1.375rem 1rem 1.25rem;
    min-height: 230px;
  }
  .tm-carousel-icon {
    width: 84px;
    height: 84px;
  }
  .tm-carousel-icon .el-image {
    width: 52px !important;
    height: 52px !important;
  }
  .tm-carousel-desc {
    font-size: 0.875rem;
  }
}

/* ------------------------------------------------------------
   Pricing page — consistent section rhythm
   Some sections had padding on the outer div, others on the inner,
   and the plan section was using uk-section-overlap to pull upward.
   Force one consistent top/bottom padding on every top-level section.
   ------------------------------------------------------------ */
body:has(.tm-plan-section) #tm-main > div {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Zero out any inner .uk-section padding that was creating additional
   space or overriding our outer rule. */
body:has(.tm-plan-section) #tm-main > div > .uk-section,
body:has(.tm-plan-section) #tm-main > div > div > .uk-section,
body:has(.tm-plan-section) #tm-main > div .uk-section-large,
body:has(.tm-plan-section) #tm-main > div .uk-section-large-top,
body:has(.tm-plan-section) #tm-main > div .uk-section-large-bottom,
body:has(.tm-plan-section) #tm-main > div .uk-padding-remove-top,
body:has(.tm-plan-section) #tm-main > div .uk-padding-remove-bottom {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* The plan section uses uk-section-overlap which draws it up into the
   hero. Kill any overlap offset so sections sit sequentially. */
body:has(.tm-plan-section) #tm-main > .uk-section-overlap {
  transform: none !important;
  top: 0 !important;
}

/* "Start your fitness business without the stress" — nested inside the
   plan section container but should read as its own section. The outer
   zero-out rule kills padding on inner .uk-section-*, so re-establish
   top breathing room on the outer wrapper. */
body:has(.tm-plan-section) #tm-main .tm-pricing-start-cta {
  padding-top: 6rem !important;
  margin-top: 2rem;
}

/* ------------------------------------------------------------
   Platform / Mobile Booking Apps — tabbed feature carousel
   The switcher card shows a phone screenshot + title + copy per tab.
   Default styling was: 40px radius, bare phone, legacy white button.
   Redo to match the rest of the redesign.
   ------------------------------------------------------------ */
.tm-platform-tabs-card.uk-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
}

/* Phone column — cap height, center, and drop a mint radial glow behind.
   The raw screenshots are 1283x2560 portrait; without a container they
   dominate the card and the corners of the device photo clip awkwardly. */
.tm-platform-tabs-card .uk-switcher .el-item > .uk-grid > .uk-width-1-3\@s {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tm-platform-tabs-card .uk-switcher .el-item > .uk-grid > .uk-width-1-3\@s::before {
  content: "";
  position: absolute;
  inset: 10% -8%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(81, 205, 152, 0.22) 0%,
    rgba(62, 195, 200, 0.14) 38%,
    rgba(58, 142, 239, 0.08) 58%,
    transparent 78%
  );
  filter: blur(36px);
  pointer-events: none;
}

.tm-platform-tabs-card .uk-switcher .el-item > .uk-grid > .uk-width-1-3\@s .el-image {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
  border-radius: 0;
}

/* Text column — give it breathing room and a clear hierarchy. */
.tm-platform-tabs-card .uk-switcher .el-item .el-title {
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.tm-platform-tabs-card .uk-switcher .el-item .el-content {
  color: var(--text);
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* "Read more" — retire the legacy white-on-purple button in this section
   for a neutral rounded pill link with an animated arrow. Scoped so it
   only affects these tab panels, not other .uk-button-primary instances. */
.tm-platform-tabs-card .uk-switcher .el-link.uk-button.uk-button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tm-platform-tabs-card .uk-switcher .el-link.uk-button.uk-button-primary::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.tm-platform-tabs-card .uk-switcher .el-link.uk-button.uk-button-primary:hover {
  border-color: var(--brand);
  background: var(--accent-soft);
  color: var(--text-bright);
}

.tm-platform-tabs-card .uk-switcher .el-link.uk-button.uk-button-primary:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   Platform detail rows — one per carousel card, stacked below
   ------------------------------------------------------------ */
.tm-platform-details {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 1rem;
}

.tm-platform-detail-row {
  --accent-stop: var(--brand);
  --accent-soft: rgba(81, 205, 152, 0.12);
  --accent-line: rgba(81, 205, 152, 0.35);
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  align-items: center;
  gap: 3.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.tm-platform-detail-row:first-child {
  border-top: none;
  padding-top: 1.5rem;
}

.tm-platform-detail-row[data-accent="teal"] {
  --accent-stop: var(--brand-mid);
  --accent-soft: rgba(62, 195, 200, 0.12);
  --accent-line: rgba(62, 195, 200, 0.35);
}

.tm-platform-detail-row[data-accent="blue"] {
  --accent-stop: var(--brand-end);
  --accent-soft: rgba(58, 142, 239, 0.12);
  --accent-line: rgba(58, 142, 239, 0.35);
}

.tm-platform-detail-row:nth-child(even) {
  grid-template-columns: 1fr minmax(160px, 220px);
}

.tm-platform-detail-row:nth-child(even) .tm-platform-detail-media {
  order: 2;
}

.tm-platform-detail-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tm-platform-detail-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.tm-platform-detail-icon::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-stop) 0%, transparent 70%);
  opacity: 0.22;
  filter: blur(26px);
  z-index: 0;
}

.tm-platform-detail-icon .el-image {
  position: relative;
  z-index: 1;
  width: 76px !important;
  height: 76px !important;
  color: var(--accent-stop);
}

.tm-platform-detail-body {
  max-width: 640px;
}

.tm-platform-detail-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-stop);
  margin-bottom: 0.75rem;
}

.tm-platform-detail-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  margin: 0 0 0.875rem !important;
}

.tm-platform-detail-copy {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-hi);
  margin: 0 0 1.25rem;
}

.tm-platform-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-stop) !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.tm-platform-detail-link:hover {
  gap: 0.625rem;
  color: var(--text-bright) !important;
}

@media (max-width: 760px) {
  .tm-platform-detail-row,
  .tm-platform-detail-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    text-align: center;
  }
  .tm-platform-detail-row:nth-child(even) .tm-platform-detail-media {
    order: 0;
  }
  .tm-platform-detail-body {
    max-width: none;
  }
  .tm-platform-detail-icon {
    width: 128px;
    height: 128px;
  }
  .tm-platform-detail-icon .el-image {
    width: 60px !important;
    height: 60px !important;
  }
  .tm-platform-detail-link {
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Generic platform-detail pages (Clovo Kiosk, Member Shop, etc.)
   ------------------------------------------------------------ */
.tm-detail-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  text-align: center;
}

.tm-detail-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.125rem;
}

.tm-detail-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  margin: 0 0 1rem !important;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 55%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tm-detail-hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-hi);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.tm-detail-hero-copy {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 2rem;
  max-width: 680px;
}

.tm-detail-hero-copy p {
  margin: 0 0 0.75rem;
}

.tm-detail-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tm-detail-feature-row {
  --accent-stop: var(--brand);
  --accent-soft: rgba(81, 205, 152, 0.12);
  --accent-line: rgba(81, 205, 152, 0.35);
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 0;
  max-width: 960px;
  margin: 0 auto;
}

.tm-detail-feature-row[data-accent="teal"] {
  --accent-stop: var(--brand-mid);
  --accent-soft: rgba(62, 195, 200, 0.12);
  --accent-line: rgba(62, 195, 200, 0.35);
}

.tm-detail-feature-row[data-accent="blue"] {
  --accent-stop: var(--brand-end);
  --accent-soft: rgba(58, 142, 239, 0.12);
  --accent-line: rgba(58, 142, 239, 0.35);
}

.tm-detail-feature-row:nth-child(2n) {
  grid-template-columns: 1fr minmax(160px, 200px);
}

.tm-detail-feature-row:nth-child(2n) .tm-detail-feature-media {
  order: 2;
}

.tm-detail-feature-media {
  display: flex;
  justify-content: center;
}

.tm-detail-feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.tm-detail-feature-icon::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-stop) 0%, transparent 70%);
  opacity: 0.22;
  filter: blur(22px);
  z-index: 0;
}

.tm-detail-feature-icon .el-image {
  position: relative;
  z-index: 1;
  width: 64px !important;
  height: 64px !important;
  color: var(--accent-stop);
}

.tm-detail-feature-heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.375rem, 2vw, 1.625rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  margin: 0 0 0.75rem !important;
}

.tm-detail-feature-copy {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-hi);
  margin: 0;
  max-width: 620px;
}

@media (max-width: 760px) {
  .tm-detail-feature-row,
  .tm-detail-feature-row:nth-child(2n) {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  .tm-detail-feature-row:nth-child(2n) .tm-detail-feature-media {
    order: 0;
  }
  .tm-detail-feature-copy {
    max-width: none;
  }
  .tm-detail-feature-icon {
    width: 110px;
    height: 110px;
  }
  .tm-detail-feature-icon .el-image {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Section-intro block — a centered eyebrow + gradient-clip title + lead copy
   used to break a detail page into named sections (e.g. "Check-in mode" vs.
   "Overview mode" on the Clovo Kiosk page). Matches the hero's voice but
   sized down so it reads as a sub-section, not a new hero. */
.tm-detail-section-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 0.5rem;
  text-align: center;
}

.tm-detail-section-intro .tm-detail-hero-eyebrow {
  margin-bottom: 1rem;
}

.tm-detail-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.625rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  color: var(--text-bright) !important;
  text-transform: none !important;
  margin: 0 0 1rem !important;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-hi) 55%, var(--brand) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tm-detail-section-copy {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 auto;
  max-width: 640px;
}

/* Compact setup-requirements panel — a small horizontal chip row that sits
   between the feature rows and the CTA. */
.tm-detail-requirements {
  max-width: 820px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.tm-detail-requirements-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

.tm-detail-requirements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-hi);
  font-size: 0.9375rem;
}

.tm-detail-requirements-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tm-detail-requirements-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .tm-detail-requirements {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
  }
}

