/* TEMVIO v1.4.4 HF3 — Marketing polish + account/sidebar layout fix */
:root{
  --hf3-indigo:#5558e8;
  --hf3-indigo-dark:#4447d9;
  --hf3-violet:#7357ee;
  --hf3-teal:#0ea89b;
  --hf3-navy:#11172b;
  --hf3-text:#111827;
  --hf3-muted:#64748b;
  --hf3-line:#e2e8f0;
  --hf3-soft:#f8fafc;
}

/* Sharper marketing buttons */
#marketing .btn.accent{
  color:#fff!important;
  background:linear-gradient(135deg,var(--hf3-indigo) 0%,var(--hf3-violet) 100%)!important;
  border:1px solid rgba(72,68,211,.18)!important;
  box-shadow:0 10px 26px rgba(85,88,232,.24)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
#marketing .btn.accent:hover{transform:translateY(-2px)!important;box-shadow:0 15px 34px rgba(85,88,232,.31)!important;filter:saturate(1.05)}
#marketing .btn.light{background:#fff!important;border-color:#dfe4ee!important;color:#1e293b!important;box-shadow:0 5px 16px rgba(15,23,42,.045)}
#marketing .btn.light:hover{border-color:#c7cbea!important;background:#f8f9ff!important;color:#4447d9!important}

/* Role selector is now the first, centered interaction above the hero */
.tm-hero{padding-top:32px!important;row-gap:34px!important}
.tm-role-launch{grid-column:1/-1;justify-self:center;width:min(100%,620px);display:grid;justify-items:center;gap:9px;position:relative;z-index:4;margin-bottom:-4px}
.tm-role-label{font-size:12px;font-weight:800;color:#64748b;letter-spacing:.01em}
.tm-role-launch .tm-intent{margin:0!important;width:min(100%,520px);display:grid!important;grid-template-columns:1fr 1fr;background:#eef0f7!important;border:1px solid #dfe3ee;border-radius:18px!important;padding:5px!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
.tm-role-launch .tm-intent button{min-height:49px;padding:10px 18px!important;border-radius:13px!important;color:#64748b!important;font-size:14px!important;font-weight:800!important;display:flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}
.tm-role-launch .tm-intent button .tm-role-icon{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#dde1eb;color:#697386;font-size:13px;transition:.18s ease}
.tm-role-launch .tm-intent button.active{background:#fff!important;color:#252761!important;box-shadow:0 7px 20px rgba(28,38,74,.10)!important}
.tm-role-launch .tm-intent button.active .tm-role-icon{background:linear-gradient(135deg,#5b5ce8,#7357ee);color:#fff;box-shadow:0 5px 12px rgba(85,88,232,.20)}

/* Hero hierarchy */
.tm-hero-copy{align-self:center}
.tm-hero h1{font-size:clamp(34px,3.65vw,49px)!important;line-height:1.32!important;letter-spacing:-.03em!important;margin:17px 0 17px!important;max-width:690px!important;color:var(--hf3-text)}
.tm-hero h1 .tm-hero-line{display:block!important;color:var(--hf3-text)!important}
.tm-hero h1 mark{background:none;padding:0;color:#5255e5;font:inherit}
.tm-hero-copy>p{font-size:16px!important;line-height:1.95!important;color:#5c6678!important;max-width:680px!important}
.tm-kicker{border-color:#e1e5ef!important;background:rgba(255,255,255,.88)!important;color:#586174!important;box-shadow:0 6px 18px rgba(15,23,42,.035)}
.tm-kicker i{background:#5b5ce8!important;box-shadow:0 0 0 5px rgba(91,92,232,.10)!important}
.tm-search{border-color:#dce1eb!important;box-shadow:0 18px 42px rgba(27,39,79,.09)!important}
.tm-search:focus-within{border-color:#aeb4f2!important;box-shadow:0 20px 48px rgba(85,88,232,.13),0 0 0 4px rgba(85,88,232,.075)!important}

/* Four polished value cards */
.tm-feature-cards{gap:14px!important;padding-bottom:30px!important}
.tm-feature-cards .tm-trust-card{position:relative;min-height:168px;display:grid!important;grid-template-columns:50px 1fr!important;grid-template-rows:auto 1fr;align-items:start!important;gap:13px!important;padding:20px!important;border:1px solid #e3e7ef!important;border-radius:22px!important;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)!important;box-shadow:0 9px 28px rgba(20,31,62,.055)!important;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.tm-feature-cards .tm-trust-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--card-accent,#5b5ce8)}
.tm-feature-cards .tm-trust-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(20,31,62,.10)!important;border-color:#d6dbea!important}
.tm-feature-cards .tm-trust-no{position:absolute;top:15px;left:16px;right:auto;font-size:10px!important;font-weight:900;color:#a2a9b7!important;letter-spacing:.08em}
html[dir="rtl"] .tm-feature-cards .tm-trust-no{right:auto;left:16px}
.tm-feature-cards .tm-trust-icon{grid-row:1/3;width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:var(--card-soft,#eef0ff);color:var(--card-accent,#5b5ce8);font-style:normal}
.tm-feature-cards .tm-trust-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-feature-cards .tm-trust-card>div{padding-top:5px;min-width:0}
.tm-feature-cards .tm-trust-card b{display:block;font-size:14px!important;line-height:1.7!important;color:#182033;margin-bottom:7px}
.tm-feature-cards .tm-trust-card small{display:block;color:#758095;font-size:11px;line-height:1.8}
.tm-trust-control{--card-accent:#5b5ce8;--card-soft:#eff0ff}.tm-trust-match{--card-accent:#0ea89b;--card-soft:#e9fbf8}.tm-trust-flow{--card-accent:#8b5cf6;--card-soft:#f4edff}.tm-trust-proof{--card-accent:#e59b28;--card-soft:#fff6e6}

/* Expertise / category section */
.tm-category-head{align-items:flex-start!important;gap:48px!important}
.tm-category-head>div{max-width:650px!important}
.tm-category-head h2{font-size:clamp(27px,2.8vw,38px)!important;line-height:1.45!important;max-width:650px!important}
.tm-category-head>p{max-width:520px!important;padding-top:38px!important;font-size:13.5px!important;line-height:2!important;color:#677287!important}
.tm-category-grid-hf3{gap:15px!important}
.tm-category-grid-hf3 .tm-category{--category-accent:#5b5ce8;--category-soft:#eff0ff;position:relative;min-height:112px;padding:20px!important;grid-template-columns:58px minmax(0,1fr) 28px!important;gap:15px!important;border:1px solid #e2e7ef!important;border-radius:21px!important;background:#fff!important;box-shadow:0 7px 22px rgba(20,31,62,.045)!important;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
.tm-category-grid-hf3 .tm-category:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--category-accent);opacity:.9}
html[dir="rtl"] .tm-category-grid-hf3 .tm-category:before{left:auto;right:0}
.tm-category-grid-hf3 .tm-category:hover{transform:translateY(-4px)!important;border-color:#cfd6e5!important;box-shadow:0 17px 38px rgba(24,37,74,.09)!important}
.tm-category-grid-hf3 .tm-category>i{width:58px!important;height:58px!important;border-radius:18px!important;background:var(--category-soft)!important;color:var(--category-accent)!important;display:grid!important;place-items:center!important}
.tm-category-grid-hf3 .tm-category>i svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.tm-category-grid-hf3 .tm-category b{font-size:15.5px!important;color:#182033;line-height:1.6}
.tm-category-grid-hf3 .tm-category span{font-size:11.5px!important;line-height:1.75!important;color:#748095!important;margin-top:5px!important}
.tm-category-grid-hf3 .tm-category em{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#f6f7fa;color:var(--category-accent)!important;font-size:16px!important;transition:.18s ease}
.tm-category-grid-hf3 .tm-category:hover em{background:var(--category-soft);transform:translateX(-2px)}
html[dir="ltr"] .tm-category-grid-hf3 .tm-category:hover em{transform:translateX(2px)}
.tm-category-web{--category-accent:#4f62e8!important;--category-soft:#edf0ff!important}.tm-category-design{--category-accent:#a34ee8!important;--category-soft:#f7edff!important}.tm-category-code{--category-accent:#0aa39a!important;--category-soft:#e8fbf8!important}.tm-category-growth{--category-accent:#e88b2e!important;--category-soft:#fff3e6!important}

/* Desktop account sidebar: keep the bottom block INSIDE the dark sidebar and make logout explicit. */
#appShell .sidebar{height:100dvh!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
#appShell .sidebar::-webkit-scrollbar{width:5px}#appShell .sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.13);border-radius:99px}
#appShell .sidebar-bottom{margin-top:auto!important;padding-top:18px!important;padding-bottom:10px!important;display:grid!important;gap:11px!important;position:relative;z-index:2;background:linear-gradient(180deg,rgba(16,23,36,0),rgba(16,23,36,.94) 16%,rgba(16,23,36,1) 100%)}
#appShell .upgrade{margin:0!important;border:1px solid rgba(129,135,255,.26)!important;background:linear-gradient(145deg,rgba(91,92,226,.20),rgba(22,178,160,.08))!important;border-radius:18px!important;padding:15px!important;box-shadow:0 8px 24px rgba(2,6,23,.13)!important}
#appShell .upgrade b{color:#fff!important}#appShell .upgrade p{color:#aeb7c9!important;line-height:1.65!important}
#appShell .sync-chip{max-width:100%;overflow:hidden}
#appShell .user-chip{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:10px!important;border-radius:17px!important;background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.09)!important;color:#fff!important;min-width:0!important;box-shadow:0 8px 22px rgba(2,6,23,.12)!important}
#appShell .sidebar-user-copy{min-width:0!important;display:grid!important;gap:2px!important}
#appShell .user-chip b{color:#fff!important;font-size:11.5px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appShell .user-chip #accountLabel{color:#a8b2c5!important;font-size:9.5px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appShell .sidebar-logout{min-width:66px;height:36px;border:1px solid rgba(255,135,135,.22);border-radius:11px;background:rgba(239,68,68,.10);color:#fecaca;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;font-weight:800;font-size:10px}
#appShell .sidebar-logout svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#appShell .sidebar-logout:hover{background:rgba(239,68,68,.18);color:#fff;border-color:rgba(255,145,145,.35)}

/* Mobile More > account card: prevent overlap and keep logout unmistakable. */
.more-account-card{position:relative!important;z-index:1!important;isolation:isolate;overflow:hidden!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;margin:0 0 18px!important;padding:18px 19px!important;border:1px solid #dfe4ee!important;border-radius:20px!important;background:linear-gradient(135deg,#fff 0%,#f7f8ff 100%)!important;box-shadow:0 10px 28px rgba(26,36,72,.07)!important;color:#182033!important}
.more-account-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#5b5ce8,#14a99c)}
html[dir="rtl"] .more-account-card:before{left:auto;right:0}
.more-account-card>div{min-width:0!important}.more-account-card .eyebrow{color:#737be1!important}.more-account-card b{color:#182033!important;font-size:13px!important}.more-account-card small{color:#6f7b90!important;font-size:10.5px!important;line-height:1.75!important}
.more-account-card .danger-outline{min-height:40px!important;padding:9px 14px!important;border-radius:12px!important;background:#fff6f6!important;border:1px solid #f2caca!important;color:#b43d3d!important;font-weight:800!important;white-space:nowrap}
.more-account-card .danger-outline:hover{background:#fff0f0!important;border-color:#e8adad!important}

@media(min-width:761px) and (max-width:1100px){
  #appShell .sidebar-user-copy,#appShell .sidebar-logout span{display:none!important}
  #appShell .user-chip{grid-template-columns:38px 38px!important;justify-content:center!important;padding:8px 5px!important}
  #appShell .sidebar-logout{min-width:38px;width:38px;padding:0!important}
  #appShell .sidebar .upgrade{display:none!important}
}
@media(max-width:1050px){
  .tm-role-launch{margin-bottom:0}.tm-feature-cards{grid-template-columns:1fr 1fr!important}.tm-category-head>p{padding-top:8px!important}
}
@media(max-width:720px){
  .tm-hero{padding-top:22px!important;row-gap:24px!important}
  .tm-role-launch{width:100%;gap:7px}
  .tm-role-label{font-size:11px}
  .tm-role-launch .tm-intent{width:100%;border-radius:16px!important}
  .tm-role-launch .tm-intent button{font-size:12.5px!important;min-height:46px;padding:8px!important}
  .tm-role-launch .tm-intent button .tm-role-icon{width:24px;height:24px;border-radius:8px}
  .tm-hero h1{font-size:clamp(27px,7.7vw,35px)!important;line-height:1.42!important;margin:13px 0 13px!important}
  .tm-hero-copy>p{font-size:13.5px!important;line-height:1.95!important}
  .tm-feature-cards{grid-template-columns:1fr!important;gap:10px!important;padding:0 16px 18px!important}
  .tm-feature-cards .tm-trust-card{min-height:0!important;grid-template-columns:46px 1fr!important;padding:16px!important;border-radius:18px!important}
  .tm-feature-cards .tm-trust-icon{width:46px;height:46px;border-radius:14px}.tm-feature-cards .tm-trust-card b{font-size:13px!important}.tm-feature-cards .tm-trust-card small{font-size:10.5px}
  .tm-category-head h2{font-size:clamp(24px,7vw,31px)!important;line-height:1.5!important}
  .tm-category-head>p{font-size:12.5px!important;line-height:1.95!important;margin-top:14px!important;padding-top:0!important}
  .tm-category-grid-hf3 .tm-category{min-height:96px;padding:15px!important;grid-template-columns:48px minmax(0,1fr) 24px!important;gap:12px!important;border-radius:18px!important}
  .tm-category-grid-hf3 .tm-category>i{width:48px!important;height:48px!important;border-radius:15px!important}.tm-category-grid-hf3 .tm-category>i svg{width:24px;height:24px}.tm-category-grid-hf3 .tm-category b{font-size:13.5px!important}.tm-category-grid-hf3 .tm-category span{font-size:10.5px!important}.tm-category-grid-hf3 .tm-category em{width:24px;height:24px;font-size:14px!important}
  .more-account-card{grid-template-columns:1fr!important;align-items:stretch!important;gap:13px!important;padding:16px!important;margin-bottom:14px!important}.more-account-card .danger-outline{width:100%!important}
}
